summaryrefslogtreecommitdiff
path: root/sysdeps/nacl
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2016-10-09 19:21:56 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-10-09 19:21:56 +0200
commit525c181a5a9a95e24d2111b7792608151a40eb84 (patch)
tree8ba16eeb3fb7327e5c3c5bba9c5786d4bb6ccec1 /sysdeps/nacl
parent4dd9e35bfd35d3138bc44169baba098005bad51e (diff)
parent7bb5f8a836b916d6ebf7b6921b136e99cea2442d (diff)
Merge commit 'refs/top-bases/t/bigmem' into t/bigmem
Diffstat (limited to 'sysdeps/nacl')
-rw-r--r--sysdeps/nacl/Makefile11
-rw-r--r--sysdeps/nacl/_exit.c2
-rw-r--r--sysdeps/nacl/access.c2
-rw-r--r--sysdeps/nacl/bits/dirent.h2
-rw-r--r--sysdeps/nacl/bits/fcntl.h2
-rw-r--r--sysdeps/nacl/bits/local_lim.h2
-rw-r--r--sysdeps/nacl/bits/mman.h2
-rw-r--r--sysdeps/nacl/bits/param.h2
-rw-r--r--sysdeps/nacl/bits/posix_opt.h2
-rw-r--r--sysdeps/nacl/bits/stat.h2
-rw-r--r--sysdeps/nacl/bits/typesizes.h3
-rw-r--r--sysdeps/nacl/brk.c2
-rw-r--r--sysdeps/nacl/chdir.c2
-rw-r--r--sysdeps/nacl/check_fds.c2
-rw-r--r--sysdeps/nacl/chmod.c2
-rw-r--r--sysdeps/nacl/clock.c2
-rw-r--r--sysdeps/nacl/clock_getres.c2
-rw-r--r--sysdeps/nacl/clock_gettime.c2
-rw-r--r--sysdeps/nacl/close.c2
-rw-r--r--sysdeps/nacl/createthread.c2
-rw-r--r--sysdeps/nacl/dl-map-segments.h30
-rw-r--r--sysdeps/nacl/dl-osinfo.h2
-rw-r--r--sysdeps/nacl/dl-sysdep-open.h40
-rw-r--r--sysdeps/nacl/dl-sysdep.c25
-rw-r--r--sysdeps/nacl/dl-sysdep.h2
-rw-r--r--sysdeps/nacl/dl-unmap-segments.h2
-rw-r--r--sysdeps/nacl/dl-writev.h2
-rw-r--r--sysdeps/nacl/dup.c2
-rw-r--r--sysdeps/nacl/dup2.c2
-rw-r--r--sysdeps/nacl/errnos.awk2
-rw-r--r--sysdeps/nacl/euidaccess.c2
-rw-r--r--sysdeps/nacl/exit-thread.h2
-rw-r--r--sysdeps/nacl/fchdir.c2
-rw-r--r--sysdeps/nacl/fchmod.c2
-rw-r--r--sysdeps/nacl/fdatasync.c2
-rw-r--r--sysdeps/nacl/fdopendir.c2
-rw-r--r--sysdeps/nacl/fsync.c2
-rw-r--r--sysdeps/nacl/ftruncate.c2
-rw-r--r--sysdeps/nacl/futex-internal.h2
-rw-r--r--sysdeps/nacl/fxstat.c2
-rw-r--r--sysdeps/nacl/getcwd.c2
-rw-r--r--sysdeps/nacl/getdents.c2
-rw-r--r--sysdeps/nacl/getdtsz.c2
-rw-r--r--sysdeps/nacl/gethostname.c2
-rw-r--r--sysdeps/nacl/getpid.c2
-rw-r--r--sysdeps/nacl/getsysstats.c2
-rw-r--r--sysdeps/nacl/gettimeofday.c2
-rw-r--r--sysdeps/nacl/init-first.c2
-rw-r--r--sysdeps/nacl/iofdopen.c2
-rw-r--r--sysdeps/nacl/isatty.c2
-rw-r--r--sysdeps/nacl/kernel-features.h2
-rw-r--r--sysdeps/nacl/ld.abilist23
-rw-r--r--sysdeps/nacl/ldsodefs.h2
-rw-r--r--sysdeps/nacl/libBrokenLocale.abilist5
-rw-r--r--sysdeps/nacl/libanl.abilist11
-rw-r--r--sysdeps/nacl/libcrypt.abilist17
-rw-r--r--sysdeps/nacl/libdl.abilist21
-rw-r--r--sysdeps/nacl/libm.abilist744
-rw-r--r--sysdeps/nacl/libpthread.abilist351
-rw-r--r--sysdeps/nacl/libresolv.abilist185
-rw-r--r--sysdeps/nacl/librt.abilist73
-rw-r--r--sysdeps/nacl/libutil.abilist15
-rw-r--r--sysdeps/nacl/link.c2
-rw-r--r--sysdeps/nacl/lll_timedlock_wait.c2
-rw-r--r--sysdeps/nacl/lll_timedwait_tid.c2
-rw-r--r--sysdeps/nacl/lowlevellock-futex.h9
-rw-r--r--sysdeps/nacl/lowlevellock.h2
-rw-r--r--sysdeps/nacl/lseek.c2
-rw-r--r--sysdeps/nacl/lxstat.c2
-rw-r--r--sysdeps/nacl/mkdir.c2
-rw-r--r--sysdeps/nacl/mmap.c2
-rw-r--r--sysdeps/nacl/mprotect.c2
-rw-r--r--sysdeps/nacl/munmap.c2
-rwxr-xr-xsysdeps/nacl/nacl-after-link.sh2
-rw-r--r--sysdeps/nacl/nacl-interface-list.h4
-rw-r--r--sysdeps/nacl/nacl-interface-table.c2
-rw-r--r--sysdeps/nacl/nacl-interfaces.c2
-rw-r--r--sysdeps/nacl/nacl-interfaces.h2
-rwxr-xr-xsysdeps/nacl/nacl-test-wrapper.sh2
-rw-r--r--sysdeps/nacl/nacl_interface_ext_supply.c2
-rw-r--r--sysdeps/nacl/nacl_interface_query.c2
-rw-r--r--sysdeps/nacl/nanosleep.c2
-rw-r--r--sysdeps/nacl/open.c2
-rw-r--r--sysdeps/nacl/pthread-pids.h2
-rw-r--r--sysdeps/nacl/pthread_condattr_setclock.c2
-rw-r--r--sysdeps/nacl/read.c2
-rw-r--r--sysdeps/nacl/readlink.c2
-rw-r--r--sysdeps/nacl/rename.c2
-rw-r--r--sysdeps/nacl/rmdir.c2
-rw-r--r--sysdeps/nacl/sched_yield.c2
-rw-r--r--sysdeps/nacl/start.c8
-rw-r--r--sysdeps/nacl/symlink.c2
-rw-r--r--sysdeps/nacl/tls.h2
-rw-r--r--sysdeps/nacl/truncate.c2
-rw-r--r--sysdeps/nacl/uname-values.h2
-rw-r--r--sysdeps/nacl/unlink.c2
-rw-r--r--sysdeps/nacl/utimes.c2
-rw-r--r--sysdeps/nacl/write.c2
-rw-r--r--sysdeps/nacl/xstat.c2
-rw-r--r--sysdeps/nacl/xstatconv.c2
-rw-r--r--sysdeps/nacl/xstatconv.h2
101 files changed, 921 insertions, 820 deletions
diff --git a/sysdeps/nacl/Makefile b/sysdeps/nacl/Makefile
index 6749a44c53..71a4f8fa4b 100644
--- a/sysdeps/nacl/Makefile
+++ b/sysdeps/nacl/Makefile
@@ -1,6 +1,6 @@
# Makefile fragment for NaCl configurations.
-# Copyright (C) 2015 Free Software Foundation, Inc.
+# Copyright (C) 2015-2016 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
# The GNU C Library is free software; you can redistribute it and/or
@@ -132,4 +132,13 @@ ifeq ($(subdir),misc)
# sysdeps/.../linux/ directories, but it's still a sysdeps decision to
# install it.
sysdep_headers += bits/mman-linux.h
+
+# This defeats sysdeps/gnu/Makefile's addition of sys/mtio.h, which
+# we do not want. This is a total kludge, but it seems no worse for
+# now than making the sysdeps/gnu/Makefile code conditional on a
+# variable we set here. If some sysdeps/.../Makefile that is later
+# in the list than sysdeps/gnu needed to add to sysdep_headers, this
+# would break it. But sysdeps/gnu is close to last in the list and
+# this coming up seems unlikely.
+override sysdep_headers := $(sysdep_headers)
endif
diff --git a/sysdeps/nacl/_exit.c b/sysdeps/nacl/_exit.c
index b3b32ee8f2..5855bbf87d 100644
--- a/sysdeps/nacl/_exit.c
+++ b/sysdeps/nacl/_exit.c
@@ -1,5 +1,5 @@
/* _exit -- low-level program termination. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/access.c b/sysdeps/nacl/access.c
index 531a999c01..95a0fb726b 100644
--- a/sysdeps/nacl/access.c
+++ b/sysdeps/nacl/access.c
@@ -1,5 +1,5 @@
/* Check file access permission. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/bits/dirent.h b/sysdeps/nacl/bits/dirent.h
index 571ac0c67b..d4eb7feb4b 100644
--- a/sysdeps/nacl/bits/dirent.h
+++ b/sysdeps/nacl/bits/dirent.h
@@ -1,5 +1,5 @@
/* Directory entry structure `struct dirent'. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/bits/fcntl.h b/sysdeps/nacl/bits/fcntl.h
index 89aab00f72..ad083b357c 100644
--- a/sysdeps/nacl/bits/fcntl.h
+++ b/sysdeps/nacl/bits/fcntl.h
@@ -1,5 +1,5 @@
/* O_*, F_*, FD_* bit values. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/bits/local_lim.h b/sysdeps/nacl/bits/local_lim.h
index 950a2371e0..0f9e4df561 100644
--- a/sysdeps/nacl/bits/local_lim.h
+++ b/sysdeps/nacl/bits/local_lim.h
@@ -1,5 +1,5 @@
/* Minimum guaranteed maximum values for system limits. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
diff --git a/sysdeps/nacl/bits/mman.h b/sysdeps/nacl/bits/mman.h
index 2d5fdfc17b..2baf35b036 100644
--- a/sysdeps/nacl/bits/mman.h
+++ b/sysdeps/nacl/bits/mman.h
@@ -1,5 +1,5 @@
/* Definitions for POSIX memory map interface. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/bits/param.h b/sysdeps/nacl/bits/param.h
index 17eb1ee43f..8f33497a3d 100644
--- a/sysdeps/nacl/bits/param.h
+++ b/sysdeps/nacl/bits/param.h
@@ -1,5 +1,5 @@
/* Old-style Unix parameters and limits. NaCl version.
- Copyright (C) 2012 Free Software Foundation, Inc.
+ Copyright (C) 2012-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/bits/posix_opt.h b/sysdeps/nacl/bits/posix_opt.h
index 2a5d6fd70a..6d51363e0e 100644
--- a/sysdeps/nacl/bits/posix_opt.h
+++ b/sysdeps/nacl/bits/posix_opt.h
@@ -1,5 +1,5 @@
/* Define POSIX options for NaCl.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/bits/stat.h b/sysdeps/nacl/bits/stat.h
index 9b89b15fcd..2ff4982e8f 100644
--- a/sysdeps/nacl/bits/stat.h
+++ b/sysdeps/nacl/bits/stat.h
@@ -1,5 +1,5 @@
/* 'struct stat' and related definitions. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/bits/typesizes.h b/sysdeps/nacl/bits/typesizes.h
index ed1b5dc7ab..0118309e18 100644
--- a/sysdeps/nacl/bits/typesizes.h
+++ b/sysdeps/nacl/bits/typesizes.h
@@ -1,5 +1,5 @@
/* bits/typesizes.h -- underlying types for *_t. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -59,6 +59,7 @@
#define __SSIZE_T_TYPE __SWORD_TYPE
#define __SYSCALL_SLONG_TYPE __SLONGWORD_TYPE
#define __SYSCALL_ULONG_TYPE __ULONGWORD_TYPE
+#define __CPU_MASK_TYPE __ULONGWORD_TYPE
/* All our foo64_t types match their foo_t counterparts. */
#define __OFF_T_MATCHES_OFF64_T 1
diff --git a/sysdeps/nacl/brk.c b/sysdeps/nacl/brk.c
index bc103de00c..cf7aac4b20 100644
--- a/sysdeps/nacl/brk.c
+++ b/sysdeps/nacl/brk.c
@@ -1,5 +1,5 @@
/* brk -- Adjust the "break" at the end of initial data. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/chdir.c b/sysdeps/nacl/chdir.c
index e194ae95d1..f28eb42f52 100644
--- a/sysdeps/nacl/chdir.c
+++ b/sysdeps/nacl/chdir.c
@@ -1,5 +1,5 @@
/* Change current working directory. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/check_fds.c b/sysdeps/nacl/check_fds.c
index a6bd8d8a5b..3a75a8ee34 100644
--- a/sysdeps/nacl/check_fds.c
+++ b/sysdeps/nacl/check_fds.c
@@ -1,5 +1,5 @@
/* Check inherited file descriptors for sanity at startup. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/chmod.c b/sysdeps/nacl/chmod.c
index 9a8ba097b5..78bf811c93 100644
--- a/sysdeps/nacl/chmod.c
+++ b/sysdeps/nacl/chmod.c
@@ -1,5 +1,5 @@
/* Change a file's permissions. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/clock.c b/sysdeps/nacl/clock.c
index e3bf897c00..664ad650c3 100644
--- a/sysdeps/nacl/clock.c
+++ b/sysdeps/nacl/clock.c
@@ -1,5 +1,5 @@
/* Return the time used by the program so far. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/clock_getres.c b/sysdeps/nacl/clock_getres.c
index 46052065e1..2b9a74f46f 100644
--- a/sysdeps/nacl/clock_getres.c
+++ b/sysdeps/nacl/clock_getres.c
@@ -1,5 +1,5 @@
/* Get the resolution of a clock. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/clock_gettime.c b/sysdeps/nacl/clock_gettime.c
index 8103ae3e4d..f33069c24a 100644
--- a/sysdeps/nacl/clock_gettime.c
+++ b/sysdeps/nacl/clock_gettime.c
@@ -1,5 +1,5 @@
/* Get the current value of a clock. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/close.c b/sysdeps/nacl/close.c
index 9f550f9964..5d33d2a1f7 100644
--- a/sysdeps/nacl/close.c
+++ b/sysdeps/nacl/close.c
@@ -1,5 +1,5 @@
/* Close a file descriptor. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/createthread.c b/sysdeps/nacl/createthread.c
index 9d9284a7b5..7b571c34e2 100644
--- a/sysdeps/nacl/createthread.c
+++ b/sysdeps/nacl/createthread.c
@@ -1,5 +1,5 @@
/* Low-level thread creation for NPTL. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/dl-map-segments.h b/sysdeps/nacl/dl-map-segments.h
index f305da304a..ec3eff8a60 100644
--- a/sysdeps/nacl/dl-map-segments.h
+++ b/sysdeps/nacl/dl-map-segments.h
@@ -1,5 +1,5 @@
/* Map in a shared object's segments. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -53,7 +53,7 @@ _dl_map_segments (struct link_map *l, int fd,
const size_t maplength, bool has_holes,
struct link_map *loader)
{
- if (__builtin_expect (type, ET_DYN) == ET_DYN)
+ if (__glibc_likely (type == ET_DYN))
{
/* This is a position-independent shared object. Let the system
choose where to place it.
@@ -165,6 +165,32 @@ _dl_map_segments (struct link_map *l, int fd,
errno = error;
return DL_MAP_SEGMENTS_ERROR_MAP_SEGMENT;
}
+ if (__glibc_unlikely (type != ET_DYN))
+ {
+ /* A successful PROT_EXEC mmap would have implicitly
+ updated the bookkeeping so that a future
+ allocate_code_data call would know that this range
+ of the address space is already occupied. That
+ doesn't happen implicitly with dyncode_create, so
+ it's necessary to do an explicit call to update the
+ bookkeeping. */
+ uintptr_t allocated_address;
+ error = __nacl_irt_code_data_alloc.allocate_code_data
+ (l->l_addr + c->mapstart, len, 0, 0, &allocated_address);
+ if (__glibc_unlikely (error))
+ {
+ errno = error;
+ return DL_MAP_SEGMENTS_ERROR_MAP_SEGMENT;
+ }
+ if (__glibc_unlikely
+ (allocated_address != l->l_addr + c->mapstart))
+ {
+ /* This is not a very helpful error for this case,
+ but there isn't really anything better to use. */
+ errno = ENOMEM;
+ return DL_MAP_SEGMENTS_ERROR_MAP_SEGMENT;
+ }
+ }
}
else
{
diff --git a/sysdeps/nacl/dl-osinfo.h b/sysdeps/nacl/dl-osinfo.h
index ee74d9dd42..c4cb0bafc8 100644
--- a/sysdeps/nacl/dl-osinfo.h
+++ b/sysdeps/nacl/dl-osinfo.h
@@ -1,5 +1,5 @@
/* DL_SYSDEP_OSCHECK macro for NaCl.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/dl-sysdep-open.h b/sysdeps/nacl/dl-sysdep-open.h
new file mode 100644
index 0000000000..10a48291da
--- /dev/null
+++ b/sysdeps/nacl/dl-sysdep-open.h
@@ -0,0 +1,40 @@
+/* System-specific call to open a shared object by name. NaCl version.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library 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
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ <http://www.gnu.org/licenses/>. */
+
+#ifndef _DL_SYSDEP_OPEN_H
+#define _DL_SYSDEP_OPEN_H 1
+
+#include <stddef.h>
+
+/* NAME is a name without slashes, as it appears in a DT_NEEDED entry
+ or a dlopen call's argument or suchlike. NAMELEN is (strlen (NAME) + 1).
+
+ Find NAME in an OS-dependent fashion, and return its "real" name.
+ Optionally fill in *FD with a file descriptor open on that file (or
+ else leave its initial value of -1). The return value is a new
+ malloc'd string, which will be free'd by the caller. If NAME is
+ resolved to an actual file that can be opened, then the return
+ value should name that file (and if *FD was not set, then a normal
+ __open call on that string will be made). If *FD was set by some
+ other means than a normal open and there is no "real" name to use,
+ then __strdup (NAME) is fine (modulo error checking). */
+
+extern char *_dl_sysdep_open_object (const char *name, size_t namelen, int *fd)
+ internal_function attribute_hidden;
+
+#endif /* dl-sysdep-open.h */
diff --git a/sysdeps/nacl/dl-sysdep.c b/sysdeps/nacl/dl-sysdep.c
index 3e902c2cae..f82567642d 100644
--- a/sysdeps/nacl/dl-sysdep.c
+++ b/sysdeps/nacl/dl-sysdep.c
@@ -1,5 +1,5 @@
/* Operating system support for run-time dynamic linker. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -87,3 +87,26 @@ _dl_start_user (void (*user_entry) (uint32_t info[]), uint32_t info[])
#endif /* SHARED */
#include <elf/dl-sysdep.c>
+
+#include <dl-sysdep-open.h>
+#include <nacl-interfaces.h>
+#include <assert.h>
+#include <string.h>
+#include <unistd.h>
+
+char *
+internal_function
+_dl_sysdep_open_object (const char *name, size_t namelen, int *fd)
+{
+ int error = __nacl_irt_resource_open.open_resource (name, fd);
+ if (error)
+ return NULL;
+ assert (*fd != -1);
+ char *realname = __strdup (name);
+ if (__glibc_unlikely (realname == NULL))
+ {
+ __close (*fd);
+ *fd = -1;
+ }
+ return realname;
+}
diff --git a/sysdeps/nacl/dl-sysdep.h b/sysdeps/nacl/dl-sysdep.h
index ade4213578..735e2f3ce5 100644
--- a/sysdeps/nacl/dl-sysdep.h
+++ b/sysdeps/nacl/dl-sysdep.h
@@ -1,5 +1,5 @@
/* System-specific settings for dynamic linker code. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/dl-unmap-segments.h b/sysdeps/nacl/dl-unmap-segments.h
index 02851e7dc3..6f114eb620 100644
--- a/sysdeps/nacl/dl-unmap-segments.h
+++ b/sysdeps/nacl/dl-unmap-segments.h
@@ -1,5 +1,5 @@
/* Unmap a shared object's segments. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/dl-writev.h b/sysdeps/nacl/dl-writev.h
index e61d9d14f9..bd50865378 100644
--- a/sysdeps/nacl/dl-writev.h
+++ b/sysdeps/nacl/dl-writev.h
@@ -1,5 +1,5 @@
/* Message-writing for the dynamic linker. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/dup.c b/sysdeps/nacl/dup.c
index 1f66c521c7..34a7cd46d4 100644
--- a/sysdeps/nacl/dup.c
+++ b/sysdeps/nacl/dup.c
@@ -1,5 +1,5 @@
/* Duplicate a file descriptor. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/dup2.c b/sysdeps/nacl/dup2.c
index 948a10892f..9cffec3c99 100644
--- a/sysdeps/nacl/dup2.c
+++ b/sysdeps/nacl/dup2.c
@@ -1,5 +1,5 @@
/* Duplicate a file descriptor to a chosen number. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/errnos.awk b/sysdeps/nacl/errnos.awk
index 65fa19bd06..f245bde0a6 100644
--- a/sysdeps/nacl/errnos.awk
+++ b/sysdeps/nacl/errnos.awk
@@ -1,6 +1,6 @@
# Script to produce bits/errno.h for NaCl.
-# Copyright (C) 2015 Free Software Foundation, Inc.
+# Copyright (C) 2015-2016 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
# The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/euidaccess.c b/sysdeps/nacl/euidaccess.c
index 50cbcfba29..62dda81604 100644
--- a/sysdeps/nacl/euidaccess.c
+++ b/sysdeps/nacl/euidaccess.c
@@ -1,5 +1,5 @@
/* Check file access permission. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/exit-thread.h b/sysdeps/nacl/exit-thread.h
index 915f93dd0d..864ed4b424 100644
--- a/sysdeps/nacl/exit-thread.h
+++ b/sysdeps/nacl/exit-thread.h
@@ -1,5 +1,5 @@
/* Call to terminate the current thread. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/fchdir.c b/sysdeps/nacl/fchdir.c
index 4295bc2c6d..294fb48046 100644
--- a/sysdeps/nacl/fchdir.c
+++ b/sysdeps/nacl/fchdir.c
@@ -1,5 +1,5 @@
/* Change working directory given a file descriptor. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/fchmod.c b/sysdeps/nacl/fchmod.c
index 35d6939cb2..1ed335c322 100644
--- a/sysdeps/nacl/fchmod.c
+++ b/sysdeps/nacl/fchmod.c
@@ -1,5 +1,5 @@
/* Change a file's permissions given a file descriptor. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/fdatasync.c b/sysdeps/nacl/fdatasync.c
index cd7a55ff41..737267bb55 100644
--- a/sysdeps/nacl/fdatasync.c
+++ b/sysdeps/nacl/fdatasync.c
@@ -1,5 +1,5 @@
/* Make all changes done to file data actually appear on disk. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/fdopendir.c b/sysdeps/nacl/fdopendir.c
index db91645aa6..9e4220c1b7 100644
--- a/sysdeps/nacl/fdopendir.c
+++ b/sysdeps/nacl/fdopendir.c
@@ -1,5 +1,5 @@
/* Open a directory stream from a file descriptor. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/fsync.c b/sysdeps/nacl/fsync.c
index 6f6622b7db..e346561dac 100644
--- a/sysdeps/nacl/fsync.c
+++ b/sysdeps/nacl/fsync.c
@@ -1,5 +1,5 @@
/* Make all changes done to FD actually appear on disk. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/ftruncate.c b/sysdeps/nacl/ftruncate.c
index 1235f0d804..66fbaa5daa 100644
--- a/sysdeps/nacl/ftruncate.c
+++ b/sysdeps/nacl/ftruncate.c
@@ -1,5 +1,5 @@
/* Truncate a file. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/futex-internal.h b/sysdeps/nacl/futex-internal.h
index 593bb9d9bf..0c5e02e818 100644
--- a/sysdeps/nacl/futex-internal.h
+++ b/sysdeps/nacl/futex-internal.h
@@ -1,5 +1,5 @@
/* futex operations for glibc-internal use. NaCl version.
- Copyright (C) 2014-2015 Free Software Foundation, Inc.
+ Copyright (C) 2014-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/fxstat.c b/sysdeps/nacl/fxstat.c
index d9f3d20afa..e97be0f517 100644
--- a/sysdeps/nacl/fxstat.c
+++ b/sysdeps/nacl/fxstat.c
@@ -1,5 +1,5 @@
/* Get stat information from a file descriptor. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/getcwd.c b/sysdeps/nacl/getcwd.c
index ba7e49a036..85a7eb2244 100644
--- a/sysdeps/nacl/getcwd.c
+++ b/sysdeps/nacl/getcwd.c
@@ -1,5 +1,5 @@
/* Get current working directory. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/getdents.c b/sysdeps/nacl/getdents.c
index e022b6bd5b..ea248de583 100644
--- a/sysdeps/nacl/getdents.c
+++ b/sysdeps/nacl/getdents.c
@@ -1,5 +1,5 @@
/* Read directory entries from a file descriptor. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/getdtsz.c b/sysdeps/nacl/getdtsz.c
index e0ba14fdfa..4eb91b7a64 100644
--- a/sysdeps/nacl/getdtsz.c
+++ b/sysdeps/nacl/getdtsz.c
@@ -1,5 +1,5 @@
/* getdtablesize -- Return the limit on file descriptor values. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/gethostname.c b/sysdeps/nacl/gethostname.c
index aed030578d..098b84be10 100644
--- a/sysdeps/nacl/gethostname.c
+++ b/sysdeps/nacl/gethostname.c
@@ -1,5 +1,5 @@
/* Get current host's name. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/getpid.c b/sysdeps/nacl/getpid.c
index 1b6d2d5d31..a2269a4c33 100644
--- a/sysdeps/nacl/getpid.c
+++ b/sysdeps/nacl/getpid.c
@@ -1,5 +1,5 @@
/* Get the process ID of the calling process. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/getsysstats.c b/sysdeps/nacl/getsysstats.c
index 97a2edb459..496b44b114 100644
--- a/sysdeps/nacl/getsysstats.c
+++ b/sysdeps/nacl/getsysstats.c
@@ -1,5 +1,5 @@
/* getsysstats - Determine various system internal values. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/gettimeofday.c b/sysdeps/nacl/gettimeofday.c
index 9fb8dab4fd..fac54f7c47 100644
--- a/sysdeps/nacl/gettimeofday.c
+++ b/sysdeps/nacl/gettimeofday.c
@@ -1,5 +1,5 @@
/* Get the current wall clock time. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/init-first.c b/sysdeps/nacl/init-first.c
index 5830c6fd69..c1364f070b 100644
--- a/sysdeps/nacl/init-first.c
+++ b/sysdeps/nacl/init-first.c
@@ -1,5 +1,5 @@
/* Initialization code run first thing by the ELF startup code. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/iofdopen.c b/sysdeps/nacl/iofdopen.c
index fd5271f4eb..9ddd9e0d3b 100644
--- a/sysdeps/nacl/iofdopen.c
+++ b/sysdeps/nacl/iofdopen.c
@@ -1,5 +1,5 @@
/* Open a stream from a file descriptor. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/isatty.c b/sysdeps/nacl/isatty.c
index fc1a686bae..988403891f 100644
--- a/sysdeps/nacl/isatty.c
+++ b/sysdeps/nacl/isatty.c
@@ -1,5 +1,5 @@
/* Determine if a file descriptor refers to a terminal. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/kernel-features.h b/sysdeps/nacl/kernel-features.h
index 3ae983d873..e27d2d4821 100644
--- a/sysdeps/nacl/kernel-features.h
+++ b/sysdeps/nacl/kernel-features.h
@@ -1,5 +1,5 @@
/* Set flags signalling availability of certain operating system features.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/ld.abilist b/sysdeps/nacl/ld.abilist
index 02944c3e65..242f6d0723 100644
--- a/sysdeps/nacl/ld.abilist
+++ b/sysdeps/nacl/ld.abilist
@@ -1,12 +1,11 @@
-GLIBC_2.22
- GLIBC_2.22 A
- __libc_memalign F
- __libc_stack_end D 0x4
- __stack_chk_guard D 0x4
- __tls_get_addr F
- _dl_mcount F
- _r_debug D 0x14
- calloc F
- free F
- malloc F
- realloc F
+GLIBC_2.22 GLIBC_2.22 A
+GLIBC_2.22 __libc_memalign F
+GLIBC_2.22 __libc_stack_end D 0x4
+GLIBC_2.22 __stack_chk_guard D 0x4
+GLIBC_2.22 __tls_get_addr F
+GLIBC_2.22 _dl_mcount F
+GLIBC_2.22 _r_debug D 0x14
+GLIBC_2.22 calloc F
+GLIBC_2.22 free F
+GLIBC_2.22 malloc F
+GLIBC_2.22 realloc F
diff --git a/sysdeps/nacl/ldsodefs.h b/sysdeps/nacl/ldsodefs.h
index 383ced5612..bc7723a36e 100644
--- a/sysdeps/nacl/ldsodefs.h
+++ b/sysdeps/nacl/ldsodefs.h
@@ -1,5 +1,5 @@
/* Run-time dynamic linker data structures for loaded ELF shared objects. NaCl.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/libBrokenLocale.abilist b/sysdeps/nacl/libBrokenLocale.abilist
index dee8cb950d..4c14da7995 100644
--- a/sysdeps/nacl/libBrokenLocale.abilist
+++ b/sysdeps/nacl/libBrokenLocale.abilist
@@ -1,3 +1,2 @@
-GLIBC_2.22
- GLIBC_2.22 A
- __ctype_get_mb_cur_max F
+GLIBC_2.22 GLIBC_2.22 A
+GLIBC_2.22 __ctype_get_mb_cur_max F
diff --git a/sysdeps/nacl/libanl.abilist b/sysdeps/nacl/libanl.abilist
index 87313a3d3d..ab6f9d2b40 100644
--- a/sysdeps/nacl/libanl.abilist
+++ b/sysdeps/nacl/libanl.abilist
@@ -1,6 +1,5 @@
-GLIBC_2.22
- GLIBC_2.22 A
- gai_cancel F
- gai_error F
- gai_suspend F
- getaddrinfo_a F
+GLIBC_2.22 GLIBC_2.22 A
+GLIBC_2.22 gai_cancel F
+GLIBC_2.22 gai_error F
+GLIBC_2.22 gai_suspend F
+GLIBC_2.22 getaddrinfo_a F
diff --git a/sysdeps/nacl/libcrypt.abilist b/sysdeps/nacl/libcrypt.abilist
index dba7399ed1..9bb645fe60 100644
--- a/sysdeps/nacl/libcrypt.abilist
+++ b/sysdeps/nacl/libcrypt.abilist
@@ -1,9 +1,8 @@
-GLIBC_2.22
- GLIBC_2.22 A
- crypt F
- crypt_r F
- encrypt F
- encrypt_r F
- fcrypt F
- setkey F
- setkey_r F
+GLIBC_2.22 GLIBC_2.22 A
+GLIBC_2.22 crypt F
+GLIBC_2.22 crypt_r F
+GLIBC_2.22 encrypt F
+GLIBC_2.22 encrypt_r F
+GLIBC_2.22 fcrypt F
+GLIBC_2.22 setkey F
+GLIBC_2.22 setkey_r F
diff --git a/sysdeps/nacl/libdl.abilist b/sysdeps/nacl/libdl.abilist
index 90acf039e2..863946ef7b 100644
--- a/sysdeps/nacl/libdl.abilist
+++ b/sysdeps/nacl/libdl.abilist
@@ -1,11 +1,10 @@
-GLIBC_2.22
- GLIBC_2.22 A
- dladdr F
- dladdr1 F
- dlclose F
- dlerror F
- dlinfo F
- dlmopen F
- dlopen F
- dlsym F
- dlvsym F
+GLIBC_2.22 GLIBC_2.22 A
+GLIBC_2.22 dladdr F
+GLIBC_2.22 dladdr1 F
+GLIBC_2.22 dlclose F
+GLIBC_2.22 dlerror F
+GLIBC_2.22 dlinfo F
+GLIBC_2.22 dlmopen F
+GLIBC_2.22 dlopen F
+GLIBC_2.22 dlsym F
+GLIBC_2.22 dlvsym F
diff --git a/sysdeps/nacl/libm.abilist b/sysdeps/nacl/libm.abilist
index 19c2d0161d..055b0b25ba 100644
--- a/sysdeps/nacl/libm.abilist
+++ b/sysdeps/nacl/libm.abilist
@@ -1,370 +1,374 @@
-GLIBC_2.22
- GLIBC_2.22 A
- _LIB_VERSION D 0x4
- __acos_finite F
- __acosf_finite F
- __acosh_finite F
- __acoshf_finite F
- __asin_finite F
- __asinf_finite F
- __atan2_finite F
- __atan2f_finite F
- __atanh_finite F
- __atanhf_finite F
- __clog10 F
- __clog10f F
- __clog10l F
- __cosh_finite F
- __coshf_finite F
- __exp10_finite F
- __exp10f_finite F
- __exp2_finite F
- __exp2f_finite F
- __exp_finite F
- __expf_finite F
- __finite F
- __finitef F
- __finitel F
- __fmod_finite F
- __fmodf_finite F
- __fpclassify F
- __fpclassifyf F
- __gamma_r_finite F
- __gammaf_r_finite F
- __hypot_finite F
- __hypotf_finite F
- __issignaling F
- __issignalingf F
- __j0_finite F
- __j0f_finite F
- __j1_finite F
- __j1f_finite F
- __jn_finite F
- __jnf_finite F
- __lgamma_r_finite F
- __lgammaf_r_finite F
- __log10_finite F
- __log10f_finite F
- __log2_finite F
- __log2f_finite F
- __log_finite F
- __logf_finite F
- __pow_finite F
- __powf_finite F
- __remainder_finite F
- __remainderf_finite F
- __scalb_finite F
- __scalbf_finite F
- __signbit F
- __signbitf F
- __sinh_finite F
- __sinhf_finite F
- __sqrt_finite F
- __sqrtf_finite F
- __y0_finite F
- __y0f_finite F
- __y1_finite F
- __y1f_finite F
- __yn_finite F
- __ynf_finite F
- acos F
- acosf F
- acosh F
- acoshf F
- acoshl F
- acosl F
- asin F
- asinf F
- asinh F
- asinhf F
- asinhl F
- asinl F
- atan F
- atan2 F
- atan2f F
- atan2l F
- atanf F
- atanh F
- atanhf F
- atanhl F
- atanl F
- cabs F
- cabsf F
- cabsl F
- cacos F
- cacosf F
- cacosh F
- cacoshf F
- cacoshl F
- cacosl F
- carg F
- cargf F
- cargl F
- casin F
- casinf F
- casinh F
- casinhf F
- casinhl F
- casinl F
- catan F
- catanf F
- catanh F
- catanhf F
- catanhl F
- catanl F
- cbrt F
- cbrtf F
- cbrtl F
- ccos F
- ccosf F
- ccosh F
- ccoshf F
- ccoshl F
- ccosl F
- ceil F
- ceilf F
- ceill F
- cexp F
- cexpf F
- cexpl F
- cimag F
- cimagf F
- cimagl F
- clog F
- clog10 F
- clog10f F
- clog10l F
- clogf F
- clogl F
- conj F
- conjf F
- conjl F
- copysign F
- copysignf F
- copysignl F
- cos F
- cosf F
- cosh F
- coshf F
- coshl F
- cosl F
- cpow F
- cpowf F
- cpowl F
- cproj F
- cprojf F
- cprojl F
- creal F
- crealf F
- creall F
- csin F
- csinf F
- csinh F
- csinhf F
- csinhl F
- csinl F
- csqrt F
- csqrtf F
- csqrtl F
- ctan F
- ctanf F
- ctanh F
- ctanhf F
- ctanhl F
- ctanl F
- drem F
- dremf F
- dreml F
- erf F
- erfc F
- erfcf F
- erfcl F
- erff F
- erfl F
- exp F
- exp10 F
- exp10f F
- exp10l F
- exp2 F
- exp2f F
- exp2l F
- expf F
- expl F
- expm1 F
- expm1f F
- expm1l F
- fabs F
- fabsf F
- fabsl F
- fdim F
- fdimf F
- fdiml F
- feclearexcept F
- fedisableexcept F
- feenableexcept F
- fegetenv F
- fegetexcept F
- fegetexceptflag F
- fegetround F
- feholdexcept F
- feraiseexcept F
- fesetenv F
- fesetexceptflag F
- fesetround F
- fetestexcept F
- feupdateenv F
- finite F
- finitef F
- finitel F
- floor F
- floorf F
- floorl F
- fma F
- fmaf F
- fmal F
- fmax F
- fmaxf F
- fmaxl F
- fmin F
- fminf F
- fminl F
- fmod F
- fmodf F
- fmodl F
- frexp F
- frexpf F
- frexpl F
- gamma F
- gammaf F
- gammal F
- hypot F
- hypotf F
- hypotl F
- ilogb F
- ilogbf F
- ilogbl F
- j0 F
- j0f F
- j0l F
- j1 F
- j1f F
- j1l F
- jn F
- jnf F
- jnl F
- ldexp F
- ldexpf F
- ldexpl F
- lgamma F
- lgamma_r F
- lgammaf F
- lgammaf_r F
- lgammal F
- lgammal_r F
- llrint F
- llrintf F
- llrintl F
- llround F
- llroundf F
- llroundl F
- log F
- log10 F
- log10f F
- log10l F
- log1p F
- log1pf F
- log1pl F
- log2 F
- log2f F
- log2l F
- logb F
- logbf F
- logbl F
- logf F
- logl F
- lrint F
- lrintf F
- lrintl F
- lround F
- lroundf F
- lroundl F
- matherr F
- modf F
- modff F
- modfl F
- nan F
- nanf F
- nanl F
- nearbyint F
- nearbyintf F
- nearbyintl F
- nextafter F
- nextafterf F
- nextafterl F
- nexttoward F
- nexttowardf F
- nexttowardl F
- pow F
- pow10 F
- pow10f F
- pow10l F
- powf F
- powl F
- remainder F
- remainderf F
- remainderl F
- remquo F
- remquof F
- remquol F
- rint F
- rintf F
- rintl F
- round F
- roundf F
- roundl F
- scalb F
- scalbf F
- scalbl F
- scalbln F
- scalblnf F
- scalblnl F
- scalbn F
- scalbnf F
- scalbnl F
- signgam D 0x4
- significand F
- significandf F
- significandl F
- sin F
- sincos F
- sincosf F
- sincosl F
- sinf F
- sinh F
- sinhf F
- sinhl F
- sinl F
- sqrt F
- sqrtf F
- sqrtl F
- tan F
- tanf F
- tanh F
- tanhf F
- tanhl F
- tanl F
- tgamma F
- tgammaf F
- tgammal F
- trunc F
- truncf F
- truncl F
- y0 F
- y0f F
- y0l F
- y1 F
- y1f F
- y1l F
- yn F
- ynf F
- ynl F
+GLIBC_2.22 GLIBC_2.22 A
+GLIBC_2.22 _LIB_VERSION D 0x4
+GLIBC_2.22 __acos_finite F
+GLIBC_2.22 __acosf_finite F
+GLIBC_2.22 __acosh_finite F
+GLIBC_2.22 __acoshf_finite F
+GLIBC_2.22 __asin_finite F
+GLIBC_2.22 __asinf_finite F
+GLIBC_2.22 __atan2_finite F
+GLIBC_2.22 __atan2f_finite F
+GLIBC_2.22 __atanh_finite F
+GLIBC_2.22 __atanhf_finite F
+GLIBC_2.22 __clog10 F
+GLIBC_2.22 __clog10f F
+GLIBC_2.22 __clog10l F
+GLIBC_2.22 __cosh_finite F
+GLIBC_2.22 __coshf_finite F
+GLIBC_2.22 __exp10_finite F
+GLIBC_2.22 __exp10f_finite F
+GLIBC_2.22 __exp2_finite F
+GLIBC_2.22 __exp2f_finite F
+GLIBC_2.22 __exp_finite F
+GLIBC_2.22 __expf_finite F
+GLIBC_2.22 __finite F
+GLIBC_2.22 __finitef F
+GLIBC_2.22 __finitel F
+GLIBC_2.22 __fmod_finite F
+GLIBC_2.22 __fmodf_finite F
+GLIBC_2.22 __fpclassify F
+GLIBC_2.22 __fpclassifyf F
+GLIBC_2.22 __gamma_r_finite F
+GLIBC_2.22 __gammaf_r_finite F
+GLIBC_2.22 __hypot_finite F
+GLIBC_2.22 __hypotf_finite F
+GLIBC_2.22 __issignaling F
+GLIBC_2.22 __issignalingf F
+GLIBC_2.22 __j0_finite F
+GLIBC_2.22 __j0f_finite F
+GLIBC_2.22 __j1_finite F
+GLIBC_2.22 __j1f_finite F
+GLIBC_2.22 __jn_finite F
+GLIBC_2.22 __jnf_finite F
+GLIBC_2.22 __lgamma_r_finite F
+GLIBC_2.22 __lgammaf_r_finite F
+GLIBC_2.22 __log10_finite F
+GLIBC_2.22 __log10f_finite F
+GLIBC_2.22 __log2_finite F
+GLIBC_2.22 __log2f_finite F
+GLIBC_2.22 __log_finite F
+GLIBC_2.22 __logf_finite F
+GLIBC_2.22 __pow_finite F
+GLIBC_2.22 __powf_finite F
+GLIBC_2.22 __remainder_finite F
+GLIBC_2.22 __remainderf_finite F
+GLIBC_2.22 __scalb_finite F
+GLIBC_2.22 __scalbf_finite F
+GLIBC_2.22 __signbit F
+GLIBC_2.22 __signbitf F
+GLIBC_2.22 __sinh_finite F
+GLIBC_2.22 __sinhf_finite F
+GLIBC_2.22 __sqrt_finite F
+GLIBC_2.22 __sqrtf_finite F
+GLIBC_2.22 __y0_finite F
+GLIBC_2.22 __y0f_finite F
+GLIBC_2.22 __y1_finite F
+GLIBC_2.22 __y1f_finite F
+GLIBC_2.22 __yn_finite F
+GLIBC_2.22 __ynf_finite F
+GLIBC_2.22 acos F
+GLIBC_2.22 acosf F
+GLIBC_2.22 acosh F
+GLIBC_2.22 acoshf F
+GLIBC_2.22 acoshl F
+GLIBC_2.22 acosl F
+GLIBC_2.22 asin F
+GLIBC_2.22 asinf F
+GLIBC_2.22 asinh F
+GLIBC_2.22 asinhf F
+GLIBC_2.22 asinhl F
+GLIBC_2.22 asinl F
+GLIBC_2.22 atan F
+GLIBC_2.22 atan2 F
+GLIBC_2.22 atan2f F
+GLIBC_2.22 atan2l F
+GLIBC_2.22 atanf F
+GLIBC_2.22 atanh F
+GLIBC_2.22 atanhf F
+GLIBC_2.22 atanhl F
+GLIBC_2.22 atanl F
+GLIBC_2.22 cabs F
+GLIBC_2.22 cabsf F
+GLIBC_2.22 cabsl F
+GLIBC_2.22 cacos F
+GLIBC_2.22 cacosf F
+GLIBC_2.22 cacosh F
+GLIBC_2.22 cacoshf F
+GLIBC_2.22 cacoshl F
+GLIBC_2.22 cacosl F
+GLIBC_2.22 carg F
+GLIBC_2.22 cargf F
+GLIBC_2.22 cargl F
+GLIBC_2.22 casin F
+GLIBC_2.22 casinf F
+GLIBC_2.22 casinh F
+GLIBC_2.22 casinhf F
+GLIBC_2.22 casinhl F
+GLIBC_2.22 casinl F
+GLIBC_2.22 catan F
+GLIBC_2.22 catanf F
+GLIBC_2.22 catanh F
+GLIBC_2.22 catanhf F
+GLIBC_2.22 catanhl F
+GLIBC_2.22 catanl F
+GLIBC_2.22 cbrt F
+GLIBC_2.22 cbrtf F
+GLIBC_2.22 cbrtl F
+GLIBC_2.22 ccos F
+GLIBC_2.22 ccosf F
+GLIBC_2.22 ccosh F
+GLIBC_2.22 ccoshf F
+GLIBC_2.22 ccoshl F
+GLIBC_2.22 ccosl F
+GLIBC_2.22 ceil F
+GLIBC_2.22 ceilf F
+GLIBC_2.22 ceill F
+GLIBC_2.22 cexp F
+GLIBC_2.22 cexpf F
+GLIBC_2.22 cexpl F
+GLIBC_2.22 cimag F
+GLIBC_2.22 cimagf F
+GLIBC_2.22 cimagl F
+GLIBC_2.22 clog F
+GLIBC_2.22 clog10 F
+GLIBC_2.22 clog10f F
+GLIBC_2.22 clog10l F
+GLIBC_2.22 clogf F
+GLIBC_2.22 clogl F
+GLIBC_2.22 conj F
+GLIBC_2.22 conjf F
+GLIBC_2.22 conjl F
+GLIBC_2.22 copysign F
+GLIBC_2.22 copysignf F
+GLIBC_2.22 copysignl F
+GLIBC_2.22 cos F
+GLIBC_2.22 cosf F
+GLIBC_2.22 cosh F
+GLIBC_2.22 coshf F
+GLIBC_2.22 coshl F
+GLIBC_2.22 cosl F
+GLIBC_2.22 cpow F
+GLIBC_2.22 cpowf F
+GLIBC_2.22 cpowl F
+GLIBC_2.22 cproj F
+GLIBC_2.22 cprojf F
+GLIBC_2.22 cprojl F
+GLIBC_2.22 creal F
+GLIBC_2.22 crealf F
+GLIBC_2.22 creall F
+GLIBC_2.22 csin F
+GLIBC_2.22 csinf F
+GLIBC_2.22 csinh F
+GLIBC_2.22 csinhf F
+GLIBC_2.22 csinhl F
+GLIBC_2.22 csinl F
+GLIBC_2.22 csqrt F
+GLIBC_2.22 csqrtf F
+GLIBC_2.22 csqrtl F
+GLIBC_2.22 ctan F
+GLIBC_2.22 ctanf F
+GLIBC_2.22 ctanh F
+GLIBC_2.22 ctanhf F
+GLIBC_2.22 ctanhl F
+GLIBC_2.22 ctanl F
+GLIBC_2.22 drem F
+GLIBC_2.22 dremf F
+GLIBC_2.22 dreml F
+GLIBC_2.22 erf F
+GLIBC_2.22 erfc F
+GLIBC_2.22 erfcf F
+GLIBC_2.22 erfcl F
+GLIBC_2.22 erff F
+GLIBC_2.22 erfl F
+GLIBC_2.22 exp F
+GLIBC_2.22 exp10 F
+GLIBC_2.22 exp10f F
+GLIBC_2.22 exp10l F
+GLIBC_2.22 exp2 F
+GLIBC_2.22 exp2f F
+GLIBC_2.22 exp2l F
+GLIBC_2.22 expf F
+GLIBC_2.22 expl F
+GLIBC_2.22 expm1 F
+GLIBC_2.22 expm1f F
+GLIBC_2.22 expm1l F
+GLIBC_2.22 fabs F
+GLIBC_2.22 fabsf F
+GLIBC_2.22 fabsl F
+GLIBC_2.22 fdim F
+GLIBC_2.22 fdimf F
+GLIBC_2.22 fdiml F
+GLIBC_2.22 feclearexcept F
+GLIBC_2.22 fedisableexcept F
+GLIBC_2.22 feenableexcept F
+GLIBC_2.22 fegetenv F
+GLIBC_2.22 fegetexcept F
+GLIBC_2.22 fegetexceptflag F
+GLIBC_2.22 fegetround F
+GLIBC_2.22 feholdexcept F
+GLIBC_2.22 feraiseexcept F
+GLIBC_2.22 fesetenv F
+GLIBC_2.22 fesetexceptflag F
+GLIBC_2.22 fesetround F
+GLIBC_2.22 fetestexcept F
+GLIBC_2.22 feupdateenv F
+GLIBC_2.22 finite F
+GLIBC_2.22 finitef F
+GLIBC_2.22 finitel F
+GLIBC_2.22 floor F
+GLIBC_2.22 floorf F
+GLIBC_2.22 floorl F
+GLIBC_2.22 fma F
+GLIBC_2.22 fmaf F
+GLIBC_2.22 fmal F
+GLIBC_2.22 fmax F
+GLIBC_2.22 fmaxf F
+GLIBC_2.22 fmaxl F
+GLIBC_2.22 fmin F
+GLIBC_2.22 fminf F
+GLIBC_2.22 fminl F
+GLIBC_2.22 fmod F
+GLIBC_2.22 fmodf F
+GLIBC_2.22 fmodl F
+GLIBC_2.22 frexp F
+GLIBC_2.22 frexpf F
+GLIBC_2.22 frexpl F
+GLIBC_2.22 gamma F
+GLIBC_2.22 gammaf F
+GLIBC_2.22 gammal F
+GLIBC_2.22 hypot F
+GLIBC_2.22 hypotf F
+GLIBC_2.22 hypotl F
+GLIBC_2.22 ilogb F
+GLIBC_2.22 ilogbf F
+GLIBC_2.22 ilogbl F
+GLIBC_2.22 j0 F
+GLIBC_2.22 j0f F
+GLIBC_2.22 j0l F
+GLIBC_2.22 j1 F
+GLIBC_2.22 j1f F
+GLIBC_2.22 j1l F
+GLIBC_2.22 jn F
+GLIBC_2.22 jnf F
+GLIBC_2.22 jnl F
+GLIBC_2.22 ldexp F
+GLIBC_2.22 ldexpf F
+GLIBC_2.22 ldexpl F
+GLIBC_2.22 lgamma F
+GLIBC_2.22 lgamma_r F
+GLIBC_2.22 lgammaf F
+GLIBC_2.22 lgammaf_r F
+GLIBC_2.22 lgammal F
+GLIBC_2.22 lgammal_r F
+GLIBC_2.22 llrint F
+GLIBC_2.22 llrintf F
+GLIBC_2.22 llrintl F
+GLIBC_2.22 llround F
+GLIBC_2.22 llroundf F
+GLIBC_2.22 llroundl F
+GLIBC_2.22 log F
+GLIBC_2.22 log10 F
+GLIBC_2.22 log10f F
+GLIBC_2.22 log10l F
+GLIBC_2.22 log1p F
+GLIBC_2.22 log1pf F
+GLIBC_2.22 log1pl F
+GLIBC_2.22 log2 F
+GLIBC_2.22 log2f F
+GLIBC_2.22 log2l F
+GLIBC_2.22 logb F
+GLIBC_2.22 logbf F
+GLIBC_2.22 logbl F
+GLIBC_2.22 logf F
+GLIBC_2.22 logl F
+GLIBC_2.22 lrint F
+GLIBC_2.22 lrintf F
+GLIBC_2.22 lrintl F
+GLIBC_2.22 lround F
+GLIBC_2.22 lroundf F
+GLIBC_2.22 lroundl F
+GLIBC_2.22 matherr F
+GLIBC_2.22 modf F
+GLIBC_2.22 modff F
+GLIBC_2.22 modfl F
+GLIBC_2.22 nan F
+GLIBC_2.22 nanf F
+GLIBC_2.22 nanl F
+GLIBC_2.22 nearbyint F
+GLIBC_2.22 nearbyintf F
+GLIBC_2.22 nearbyintl F
+GLIBC_2.22 nextafter F
+GLIBC_2.22 nextafterf F
+GLIBC_2.22 nextafterl F
+GLIBC_2.22 nexttoward F
+GLIBC_2.22 nexttowardf F
+GLIBC_2.22 nexttowardl F
+GLIBC_2.22 pow F
+GLIBC_2.22 pow10 F
+GLIBC_2.22 pow10f F
+GLIBC_2.22 pow10l F
+GLIBC_2.22 powf F
+GLIBC_2.22 powl F
+GLIBC_2.22 remainder F
+GLIBC_2.22 remainderf F
+GLIBC_2.22 remainderl F
+GLIBC_2.22 remquo F
+GLIBC_2.22 remquof F
+GLIBC_2.22 remquol F
+GLIBC_2.22 rint F
+GLIBC_2.22 rintf F
+GLIBC_2.22 rintl F
+GLIBC_2.22 round F
+GLIBC_2.22 roundf F
+GLIBC_2.22 roundl F
+GLIBC_2.22 scalb F
+GLIBC_2.22 scalbf F
+GLIBC_2.22 scalbl F
+GLIBC_2.22 scalbln F
+GLIBC_2.22 scalblnf F
+GLIBC_2.22 scalblnl F
+GLIBC_2.22 scalbn F
+GLIBC_2.22 scalbnf F
+GLIBC_2.22 scalbnl F
+GLIBC_2.22 signgam D 0x4
+GLIBC_2.22 significand F
+GLIBC_2.22 significandf F
+GLIBC_2.22 significandl F
+GLIBC_2.22 sin F
+GLIBC_2.22 sincos F
+GLIBC_2.22 sincosf F
+GLIBC_2.22 sincosl F
+GLIBC_2.22 sinf F
+GLIBC_2.22 sinh F
+GLIBC_2.22 sinhf F
+GLIBC_2.22 sinhl F
+GLIBC_2.22 sinl F
+GLIBC_2.22 sqrt F
+GLIBC_2.22 sqrtf F
+GLIBC_2.22 sqrtl F
+GLIBC_2.22 tan F
+GLIBC_2.22 tanf F
+GLIBC_2.22 tanh F
+GLIBC_2.22 tanhf F
+GLIBC_2.22 tanhl F
+GLIBC_2.22 tanl F
+GLIBC_2.22 tgamma F
+GLIBC_2.22 tgammaf F
+GLIBC_2.22 tgammal F
+GLIBC_2.22 trunc F
+GLIBC_2.22 truncf F
+GLIBC_2.22 truncl F
+GLIBC_2.22 y0 F
+GLIBC_2.22 y0f F
+GLIBC_2.22 y0l F
+GLIBC_2.22 y1 F
+GLIBC_2.22 y1f F
+GLIBC_2.22 y1l F
+GLIBC_2.22 yn F
+GLIBC_2.22 ynf F
+GLIBC_2.22 ynl F
+GLIBC_2.23 GLIBC_2.23 A
+GLIBC_2.23 __signgam D 0x4
+GLIBC_2.23 lgamma F
+GLIBC_2.23 lgammaf F
+GLIBC_2.23 lgammal F
diff --git a/sysdeps/nacl/libpthread.abilist b/sysdeps/nacl/libpthread.abilist
index 6c5e70da2f..8f0099cb2f 100644
--- a/sysdeps/nacl/libpthread.abilist
+++ b/sysdeps/nacl/libpthread.abilist
@@ -1,176 +1,175 @@
-GLIBC_2.22
- GLIBC_2.22 A
- _IO_flockfile F
- _IO_ftrylockfile F
- _IO_funlockfile F
- __errno_location F
- __h_errno_location F
- __libc_allocate_rtsig F
- __libc_current_sigrtmax F
- __libc_current_sigrtmin F
- __pthread_cleanup_routine F
- __pthread_getspecific F
- __pthread_key_create F
- __pthread_mutex_destroy F
- __pthread_mutex_init F
- __pthread_mutex_lock F
- __pthread_mutex_trylock F
- __pthread_mutex_unlock F
- __pthread_mutexattr_destroy F
- __pthread_mutexattr_init F
- __pthread_mutexattr_settype F
- __pthread_once F
- __pthread_register_cancel F
- __pthread_register_cancel_defer F
- __pthread_rwlock_destroy F
- __pthread_rwlock_init F
- __pthread_rwlock_rdlock F
- __pthread_rwlock_tryrdlock F
- __pthread_rwlock_trywrlock F
- __pthread_rwlock_unlock F
- __pthread_rwlock_wrlock F
- __pthread_setspecific F
- __pthread_unregister_cancel F
- __pthread_unregister_cancel_restore F
- __pthread_unwind_next F
- __res_state F
- _pthread_cleanup_pop F
- _pthread_cleanup_pop_restore F
- _pthread_cleanup_push F
- _pthread_cleanup_push_defer F
- flockfile F
- ftrylockfile F
- funlockfile F
- pthread_attr_destroy F
- pthread_attr_getaffinity_np F
- pthread_attr_getdetachstate F
- pthread_attr_getguardsize F
- pthread_attr_getinheritsched F
- pthread_attr_getschedparam F
- pthread_attr_getschedpolicy F
- pthread_attr_getscope F
- pthread_attr_getstack F
- pthread_attr_getstackaddr F
- pthread_attr_getstacksize F
- pthread_attr_init F
- pthread_attr_setaffinity_np F
- pthread_attr_setdetachstate F
- pthread_attr_setguardsize F
- pthread_attr_setinheritsched F
- pthread_attr_setschedparam F
- pthread_attr_setschedpolicy F
- pthread_attr_setscope F
- pthread_attr_setstack F
- pthread_attr_setstackaddr F
- pthread_attr_setstacksize F
- pthread_barrier_destroy F
- pthread_barrier_init F
- pthread_barrier_wait F
- pthread_barrierattr_destroy F
- pthread_barrierattr_getpshared F
- pthread_barrierattr_init F
- pthread_barrierattr_setpshared F
- pthread_cancel F
- pthread_cond_broadcast F
- pthread_cond_destroy F
- pthread_cond_init F
- pthread_cond_signal F
- pthread_cond_timedwait F
- pthread_cond_wait F
- pthread_condattr_destroy F
- pthread_condattr_getclock F
- pthread_condattr_getpshared F
- pthread_condattr_init F
- pthread_condattr_setclock F
- pthread_condattr_setpshared F
- pthread_create F
- pthread_detach F
- pthread_equal F
- pthread_exit F
- pthread_getaffinity_np F
- pthread_getattr_default_np F
- pthread_getattr_np F
- pthread_getconcurrency F
- pthread_getcpuclockid F
- pthread_getname_np F
- pthread_getschedparam F
- pthread_getspecific F
- pthread_join F
- pthread_key_create F
- pthread_key_delete F
- pthread_kill F
- pthread_kill_other_threads_np F
- pthread_mutex_consistent F
- pthread_mutex_consistent_np F
- pthread_mutex_destroy F
- pthread_mutex_getprioceiling F
- pthread_mutex_init F
- pthread_mutex_lock F
- pthread_mutex_setprioceiling F
- pthread_mutex_timedlock F
- pthread_mutex_trylock F
- pthread_mutex_unlock F
- pthread_mutexattr_destroy F
- pthread_mutexattr_getkind_np F
- pthread_mutexattr_getprioceiling F
- pthread_mutexattr_getprotocol F
- pthread_mutexattr_getpshared F
- pthread_mutexattr_getrobust F
- pthread_mutexattr_getrobust_np F
- pthread_mutexattr_gettype F
- pthread_mutexattr_init F
- pthread_mutexattr_setkind_np F
- pthread_mutexattr_setprioceiling F
- pthread_mutexattr_setprotocol F
- pthread_mutexattr_setpshared F
- pthread_mutexattr_setrobust F
- pthread_mutexattr_setrobust_np F
- pthread_mutexattr_settype F
- pthread_once F
- pthread_rwlock_destroy F
- pthread_rwlock_init F
- pthread_rwlock_rdlock F
- pthread_rwlock_timedrdlock F
- pthread_rwlock_timedwrlock F
- pthread_rwlock_tryrdlock F
- pthread_rwlock_trywrlock F
- pthread_rwlock_unlock F
- pthread_rwlock_wrlock F
- pthread_rwlockattr_destroy F
- pthread_rwlockattr_getkind_np F
- pthread_rwlockattr_getpshared F
- pthread_rwlockattr_init F
- pthread_rwlockattr_setkind_np F
- pthread_rwlockattr_setpshared F
- pthread_self F
- pthread_setaffinity_np F
- pthread_setattr_default_np F
- pthread_setcancelstate F
- pthread_setcanceltype F
- pthread_setconcurrency F
- pthread_setname_np F
- pthread_setschedparam F
- pthread_setschedprio F
- pthread_setspecific F
- pthread_sigmask F
- pthread_sigqueue F
- pthread_spin_destroy F
- pthread_spin_init F
- pthread_spin_lock F
- pthread_spin_trylock F
- pthread_spin_unlock F
- pthread_testcancel F
- pthread_timedjoin_np F
- pthread_tryjoin_np F
- pthread_yield F
- raise F
- sem_close F
- sem_destroy F
- sem_getvalue F
- sem_init F
- sem_open F
- sem_post F
- sem_timedwait F
- sem_trywait F
- sem_unlink F
- sem_wait F
+GLIBC_2.22 GLIBC_2.22 A
+GLIBC_2.22 _IO_flockfile F
+GLIBC_2.22 _IO_ftrylockfile F
+GLIBC_2.22 _IO_funlockfile F
+GLIBC_2.22 __errno_location F
+GLIBC_2.22 __h_errno_location F
+GLIBC_2.22 __libc_allocate_rtsig F
+GLIBC_2.22 __libc_current_sigrtmax F
+GLIBC_2.22 __libc_current_sigrtmin F
+GLIBC_2.22 __pthread_cleanup_routine F
+GLIBC_2.22 __pthread_getspecific F
+GLIBC_2.22 __pthread_key_create F
+GLIBC_2.22 __pthread_mutex_destroy F
+GLIBC_2.22 __pthread_mutex_init F
+GLIBC_2.22 __pthread_mutex_lock F
+GLIBC_2.22 __pthread_mutex_trylock F
+GLIBC_2.22 __pthread_mutex_unlock F
+GLIBC_2.22 __pthread_mutexattr_destroy F
+GLIBC_2.22 __pthread_mutexattr_init F
+GLIBC_2.22 __pthread_mutexattr_settype F
+GLIBC_2.22 __pthread_once F
+GLIBC_2.22 __pthread_register_cancel F
+GLIBC_2.22 __pthread_register_cancel_defer F
+GLIBC_2.22 __pthread_rwlock_destroy F
+GLIBC_2.22 __pthread_rwlock_init F
+GLIBC_2.22 __pthread_rwlock_rdlock F
+GLIBC_2.22 __pthread_rwlock_tryrdlock F
+GLIBC_2.22 __pthread_rwlock_trywrlock F
+GLIBC_2.22 __pthread_rwlock_unlock F
+GLIBC_2.22 __pthread_rwlock_wrlock F
+GLIBC_2.22 __pthread_setspecific F
+GLIBC_2.22 __pthread_unregister_cancel F
+GLIBC_2.22 __pthread_unregister_cancel_restore F
+GLIBC_2.22 __pthread_unwind_next F
+GLIBC_2.22 __res_state F
+GLIBC_2.22 _pthread_cleanup_pop F
+GLIBC_2.22 _pthread_cleanup_pop_restore F
+GLIBC_2.22 _pthread_cleanup_push F
+GLIBC_2.22 _pthread_cleanup_push_defer F
+GLIBC_2.22 flockfile F
+GLIBC_2.22 ftrylockfile F
+GLIBC_2.22 funlockfile F
+GLIBC_2.22 pthread_attr_destroy F
+GLIBC_2.22 pthread_attr_getaffinity_np F
+GLIBC_2.22 pthread_attr_getdetachstate F
+GLIBC_2.22 pthread_attr_getguardsize F
+GLIBC_2.22 pthread_attr_getinheritsched F
+GLIBC_2.22 pthread_attr_getschedparam F
+GLIBC_2.22 pthread_attr_getschedpolicy F
+GLIBC_2.22 pthread_attr_getscope F
+GLIBC_2.22 pthread_attr_getstack F
+GLIBC_2.22 pthread_attr_getstackaddr F
+GLIBC_2.22 pthread_attr_getstacksize F
+GLIBC_2.22 pthread_attr_init F
+GLIBC_2.22 pthread_attr_setaffinity_np F
+GLIBC_2.22 pthread_attr_setdetachstate F
+GLIBC_2.22 pthread_attr_setguardsize F
+GLIBC_2.22 pthread_attr_setinheritsched F
+GLIBC_2.22 pthread_attr_setschedparam F
+GLIBC_2.22 pthread_attr_setschedpolicy F
+GLIBC_2.22 pthread_attr_setscope F
+GLIBC_2.22 pthread_attr_setstack F
+GLIBC_2.22 pthread_attr_setstackaddr F
+GLIBC_2.22 pthread_attr_setstacksize F
+GLIBC_2.22 pthread_barrier_destroy F
+GLIBC_2.22 pthread_barrier_init F
+GLIBC_2.22 pthread_barrier_wait F
+GLIBC_2.22 pthread_barrierattr_destroy F
+GLIBC_2.22 pthread_barrierattr_getpshared F
+GLIBC_2.22 pthread_barrierattr_init F
+GLIBC_2.22 pthread_barrierattr_setpshared F
+GLIBC_2.22 pthread_cancel F
+GLIBC_2.22 pthread_cond_broadcast F
+GLIBC_2.22 pthread_cond_destroy F
+GLIBC_2.22 pthread_cond_init F
+GLIBC_2.22 pthread_cond_signal F
+GLIBC_2.22 pthread_cond_timedwait F
+GLIBC_2.22 pthread_cond_wait F
+GLIBC_2.22 pthread_condattr_destroy F
+GLIBC_2.22 pthread_condattr_getclock F
+GLIBC_2.22 pthread_condattr_getpshared F
+GLIBC_2.22 pthread_condattr_init F
+GLIBC_2.22 pthread_condattr_setclock F
+GLIBC_2.22 pthread_condattr_setpshared F
+GLIBC_2.22 pthread_create F
+GLIBC_2.22 pthread_detach F
+GLIBC_2.22 pthread_equal F
+GLIBC_2.22 pthread_exit F
+GLIBC_2.22 pthread_getaffinity_np F
+GLIBC_2.22 pthread_getattr_default_np F
+GLIBC_2.22 pthread_getattr_np F
+GLIBC_2.22 pthread_getconcurrency F
+GLIBC_2.22 pthread_getcpuclockid F
+GLIBC_2.22 pthread_getname_np F
+GLIBC_2.22 pthread_getschedparam F
+GLIBC_2.22 pthread_getspecific F
+GLIBC_2.22 pthread_join F
+GLIBC_2.22 pthread_key_create F
+GLIBC_2.22 pthread_key_delete F
+GLIBC_2.22 pthread_kill F
+GLIBC_2.22 pthread_kill_other_threads_np F
+GLIBC_2.22 pthread_mutex_consistent F
+GLIBC_2.22 pthread_mutex_consistent_np F
+GLIBC_2.22 pthread_mutex_destroy F
+GLIBC_2.22 pthread_mutex_getprioceiling F
+GLIBC_2.22 pthread_mutex_init F
+GLIBC_2.22 pthread_mutex_lock F
+GLIBC_2.22 pthread_mutex_setprioceiling F
+GLIBC_2.22 pthread_mutex_timedlock F
+GLIBC_2.22 pthread_mutex_trylock F
+GLIBC_2.22 pthread_mutex_unlock F
+GLIBC_2.22 pthread_mutexattr_destroy F
+GLIBC_2.22 pthread_mutexattr_getkind_np F
+GLIBC_2.22 pthread_mutexattr_getprioceiling F
+GLIBC_2.22 pthread_mutexattr_getprotocol F
+GLIBC_2.22 pthread_mutexattr_getpshared F
+GLIBC_2.22 pthread_mutexattr_getrobust F
+GLIBC_2.22 pthread_mutexattr_getrobust_np F
+GLIBC_2.22 pthread_mutexattr_gettype F
+GLIBC_2.22 pthread_mutexattr_init F
+GLIBC_2.22 pthread_mutexattr_setkind_np F
+GLIBC_2.22 pthread_mutexattr_setprioceiling F
+GLIBC_2.22 pthread_mutexattr_setprotocol F
+GLIBC_2.22 pthread_mutexattr_setpshared F
+GLIBC_2.22 pthread_mutexattr_setrobust F
+GLIBC_2.22 pthread_mutexattr_setrobust_np F
+GLIBC_2.22 pthread_mutexattr_settype F
+GLIBC_2.22 pthread_once F
+GLIBC_2.22 pthread_rwlock_destroy F
+GLIBC_2.22 pthread_rwlock_init F
+GLIBC_2.22 pthread_rwlock_rdlock F
+GLIBC_2.22 pthread_rwlock_timedrdlock F
+GLIBC_2.22 pthread_rwlock_timedwrlock F
+GLIBC_2.22 pthread_rwlock_tryrdlock F
+GLIBC_2.22 pthread_rwlock_trywrlock F
+GLIBC_2.22 pthread_rwlock_unlock F
+GLIBC_2.22 pthread_rwlock_wrlock F
+GLIBC_2.22 pthread_rwlockattr_destroy F
+GLIBC_2.22 pthread_rwlockattr_getkind_np F
+GLIBC_2.22 pthread_rwlockattr_getpshared F
+GLIBC_2.22 pthread_rwlockattr_init F
+GLIBC_2.22 pthread_rwlockattr_setkind_np F
+GLIBC_2.22 pthread_rwlockattr_setpshared F
+GLIBC_2.22 pthread_self F
+GLIBC_2.22 pthread_setaffinity_np F
+GLIBC_2.22 pthread_setattr_default_np F
+GLIBC_2.22 pthread_setcancelstate F
+GLIBC_2.22 pthread_setcanceltype F
+GLIBC_2.22 pthread_setconcurrency F
+GLIBC_2.22 pthread_setname_np F
+GLIBC_2.22 pthread_setschedparam F
+GLIBC_2.22 pthread_setschedprio F
+GLIBC_2.22 pthread_setspecific F
+GLIBC_2.22 pthread_sigmask F
+GLIBC_2.22 pthread_sigqueue F
+GLIBC_2.22 pthread_spin_destroy F
+GLIBC_2.22 pthread_spin_init F
+GLIBC_2.22 pthread_spin_lock F
+GLIBC_2.22 pthread_spin_trylock F
+GLIBC_2.22 pthread_spin_unlock F
+GLIBC_2.22 pthread_testcancel F
+GLIBC_2.22 pthread_timedjoin_np F
+GLIBC_2.22 pthread_tryjoin_np F
+GLIBC_2.22 pthread_yield F
+GLIBC_2.22 raise F
+GLIBC_2.22 sem_close F
+GLIBC_2.22 sem_destroy F
+GLIBC_2.22 sem_getvalue F
+GLIBC_2.22 sem_init F
+GLIBC_2.22 sem_open F
+GLIBC_2.22 sem_post F
+GLIBC_2.22 sem_timedwait F
+GLIBC_2.22 sem_trywait F
+GLIBC_2.22 sem_unlink F
+GLIBC_2.22 sem_wait F
diff --git a/sysdeps/nacl/libresolv.abilist b/sysdeps/nacl/libresolv.abilist
index 379b4c11af..03f6bc211a 100644
--- a/sysdeps/nacl/libresolv.abilist
+++ b/sysdeps/nacl/libresolv.abilist
@@ -1,93 +1,92 @@
-GLIBC_2.22
- GLIBC_2.22 A
- __b64_ntop F
- __b64_pton F
- __dn_comp F
- __dn_count_labels F
- __dn_expand F
- __dn_skipname F
- __fp_nquery F
- __fp_query F
- __fp_resstat F
- __hostalias F
- __loc_aton F
- __loc_ntoa F
- __p_cdname F
- __p_cdnname F
- __p_class F
- __p_class_syms D 0x54
- __p_fqname F
- __p_fqnname F
- __p_option F
- __p_query F
- __p_rcode F
- __p_secstodate F
- __p_time F
- __p_type F
- __p_type_syms D 0x228
- __putlong F
- __putshort F
- __res_close F
- __res_dnok F
- __res_hnok F
- __res_hostalias F
- __res_isourserver F
- __res_mailok F
- __res_mkquery F
- __res_nameinquery F
- __res_nmkquery F
- __res_nquery F
- __res_nquerydomain F
- __res_nsearch F
- __res_nsend F
- __res_ownok F
- __res_queriesmatch F
- __res_query F
- __res_querydomain F
- __res_search F
- __res_send F
- __sym_ntop F
- __sym_ntos F
- __sym_ston F
- _gethtbyaddr F
- _gethtbyname F
- _gethtbyname2 F
- _gethtent F
- _getlong F
- _getshort F
- _res_opcodes D 0x40
- _sethtent F
- inet_net_ntop F
- inet_net_pton F
- inet_neta F
- ns_datetosecs F
- ns_format_ttl F
- ns_get16 F
- ns_get32 F
- ns_initparse F
- ns_makecanon F
- ns_msg_getflag F
- ns_name_compress F
- ns_name_ntol F
- ns_name_ntop F
- ns_name_pack F
- ns_name_pton F
- ns_name_rollback F
- ns_name_skip F
- ns_name_uncompress F
- ns_name_unpack F
- ns_parse_ttl F
- ns_parserr F
- ns_put16 F
- ns_put32 F
- ns_samedomain F
- ns_samename F
- ns_skiprr F
- ns_sprintrr F
- ns_sprintrrf F
- ns_subdomain F
- res_gethostbyaddr F
- res_gethostbyname F
- res_gethostbyname2 F
- res_send_setqhook F
- res_send_setrhook F
+GLIBC_2.22 GLIBC_2.22 A
+GLIBC_2.22 __b64_ntop F
+GLIBC_2.22 __b64_pton F
+GLIBC_2.22 __dn_comp F
+GLIBC_2.22 __dn_count_labels F
+GLIBC_2.22 __dn_expand F
+GLIBC_2.22 __dn_skipname F
+GLIBC_2.22 __fp_nquery F
+GLIBC_2.22 __fp_query F
+GLIBC_2.22 __fp_resstat F
+GLIBC_2.22 __hostalias F
+GLIBC_2.22 __loc_aton F
+GLIBC_2.22 __loc_ntoa F
+GLIBC_2.22 __p_cdname F
+GLIBC_2.22 __p_cdnname F
+GLIBC_2.22 __p_class F
+GLIBC_2.22 __p_class_syms D 0x54
+GLIBC_2.22 __p_fqname F
+GLIBC_2.22 __p_fqnname F
+GLIBC_2.22 __p_option F
+GLIBC_2.22 __p_query F
+GLIBC_2.22 __p_rcode F
+GLIBC_2.22 __p_secstodate F
+GLIBC_2.22 __p_time F
+GLIBC_2.22 __p_type F
+GLIBC_2.22 __p_type_syms D 0x228
+GLIBC_2.22 __putlong F
+GLIBC_2.22 __putshort F
+GLIBC_2.22 __res_close F
+GLIBC_2.22 __res_dnok F
+GLIBC_2.22 __res_hnok F
+GLIBC_2.22 __res_hostalias F
+GLIBC_2.22 __res_isourserver F
+GLIBC_2.22 __res_mailok F
+GLIBC_2.22 __res_mkquery F
+GLIBC_2.22 __res_nameinquery F
+GLIBC_2.22 __res_nmkquery F
+GLIBC_2.22 __res_nquery F
+GLIBC_2.22 __res_nquerydomain F
+GLIBC_2.22 __res_nsearch F
+GLIBC_2.22 __res_nsend F
+GLIBC_2.22 __res_ownok F
+GLIBC_2.22 __res_queriesmatch F
+GLIBC_2.22 __res_query F
+GLIBC_2.22 __res_querydomain F
+GLIBC_2.22 __res_search F
+GLIBC_2.22 __res_send F
+GLIBC_2.22 __sym_ntop F
+GLIBC_2.22 __sym_ntos F
+GLIBC_2.22 __sym_ston F
+GLIBC_2.22 _gethtbyaddr F
+GLIBC_2.22 _gethtbyname F
+GLIBC_2.22 _gethtbyname2 F
+GLIBC_2.22 _gethtent F
+GLIBC_2.22 _getlong F
+GLIBC_2.22 _getshort F
+GLIBC_2.22 _res_opcodes D 0x40
+GLIBC_2.22 _sethtent F
+GLIBC_2.22 inet_net_ntop F
+GLIBC_2.22 inet_net_pton F
+GLIBC_2.22 inet_neta F
+GLIBC_2.22 ns_datetosecs F
+GLIBC_2.22 ns_format_ttl F
+GLIBC_2.22 ns_get16 F
+GLIBC_2.22 ns_get32 F
+GLIBC_2.22 ns_initparse F
+GLIBC_2.22 ns_makecanon F
+GLIBC_2.22 ns_msg_getflag F
+GLIBC_2.22 ns_name_compress F
+GLIBC_2.22 ns_name_ntol F
+GLIBC_2.22 ns_name_ntop F
+GLIBC_2.22 ns_name_pack F
+GLIBC_2.22 ns_name_pton F
+GLIBC_2.22 ns_name_rollback F
+GLIBC_2.22 ns_name_skip F
+GLIBC_2.22 ns_name_uncompress F
+GLIBC_2.22 ns_name_unpack F
+GLIBC_2.22 ns_parse_ttl F
+GLIBC_2.22 ns_parserr F
+GLIBC_2.22 ns_put16 F
+GLIBC_2.22 ns_put32 F
+GLIBC_2.22 ns_samedomain F
+GLIBC_2.22 ns_samename F
+GLIBC_2.22 ns_skiprr F
+GLIBC_2.22 ns_sprintrr F
+GLIBC_2.22 ns_sprintrrf F
+GLIBC_2.22 ns_subdomain F
+GLIBC_2.22 res_gethostbyaddr F
+GLIBC_2.22 res_gethostbyname F
+GLIBC_2.22 res_gethostbyname2 F
+GLIBC_2.22 res_send_setqhook F
+GLIBC_2.22 res_send_setrhook F
diff --git a/sysdeps/nacl/librt.abilist b/sysdeps/nacl/librt.abilist
index 575b04a5c6..58a05aad05 100644
--- a/sysdeps/nacl/librt.abilist
+++ b/sysdeps/nacl/librt.abilist
@@ -1,37 +1,36 @@
-GLIBC_2.22
- GLIBC_2.22 A
- __mq_open_2 F
- aio_cancel F
- aio_cancel64 F
- aio_error F
- aio_error64 F
- aio_fsync F
- aio_fsync64 F
- aio_init F
- aio_read F
- aio_read64 F
- aio_return F
- aio_return64 F
- aio_suspend F
- aio_suspend64 F
- aio_write F
- aio_write64 F
- lio_listio F
- lio_listio64 F
- mq_close F
- mq_getattr F
- mq_notify F
- mq_open F
- mq_receive F
- mq_send F
- mq_setattr F
- mq_timedreceive F
- mq_timedsend F
- mq_unlink F
- shm_open F
- shm_unlink F
- timer_create F
- timer_delete F
- timer_getoverrun F
- timer_gettime F
- timer_settime F
+GLIBC_2.22 GLIBC_2.22 A
+GLIBC_2.22 __mq_open_2 F
+GLIBC_2.22 aio_cancel F
+GLIBC_2.22 aio_cancel64 F
+GLIBC_2.22 aio_error F
+GLIBC_2.22 aio_error64 F
+GLIBC_2.22 aio_fsync F
+GLIBC_2.22 aio_fsync64 F
+GLIBC_2.22 aio_init F
+GLIBC_2.22 aio_read F
+GLIBC_2.22 aio_read64 F
+GLIBC_2.22 aio_return F
+GLIBC_2.22 aio_return64 F
+GLIBC_2.22 aio_suspend F
+GLIBC_2.22 aio_suspend64 F
+GLIBC_2.22 aio_write F
+GLIBC_2.22 aio_write64 F
+GLIBC_2.22 lio_listio F
+GLIBC_2.22 lio_listio64 F
+GLIBC_2.22 mq_close F
+GLIBC_2.22 mq_getattr F
+GLIBC_2.22 mq_notify F
+GLIBC_2.22 mq_open F
+GLIBC_2.22 mq_receive F
+GLIBC_2.22 mq_send F
+GLIBC_2.22 mq_setattr F
+GLIBC_2.22 mq_timedreceive F
+GLIBC_2.22 mq_timedsend F
+GLIBC_2.22 mq_unlink F
+GLIBC_2.22 shm_open F
+GLIBC_2.22 shm_unlink F
+GLIBC_2.22 timer_create F
+GLIBC_2.22 timer_delete F
+GLIBC_2.22 timer_getoverrun F
+GLIBC_2.22 timer_gettime F
+GLIBC_2.22 timer_settime F
diff --git a/sysdeps/nacl/libutil.abilist b/sysdeps/nacl/libutil.abilist
index 13bc9270cb..080dd1e57b 100644
--- a/sysdeps/nacl/libutil.abilist
+++ b/sysdeps/nacl/libutil.abilist
@@ -1,8 +1,7 @@
-GLIBC_2.22
- GLIBC_2.22 A
- forkpty F
- login F
- login_tty F
- logout F
- logwtmp F
- openpty F
+GLIBC_2.22 GLIBC_2.22 A
+GLIBC_2.22 forkpty F
+GLIBC_2.22 login F
+GLIBC_2.22 login_tty F
+GLIBC_2.22 logout F
+GLIBC_2.22 logwtmp F
+GLIBC_2.22 openpty F
diff --git a/sysdeps/nacl/link.c b/sysdeps/nacl/link.c
index 49f071f3d9..1310dc461b 100644
--- a/sysdeps/nacl/link.c
+++ b/sysdeps/nacl/link.c
@@ -1,5 +1,5 @@
/* Make a hard link. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/lll_timedlock_wait.c b/sysdeps/nacl/lll_timedlock_wait.c
index 1a41a6f6b4..d9f177291f 100644
--- a/sysdeps/nacl/lll_timedlock_wait.c
+++ b/sysdeps/nacl/lll_timedlock_wait.c
@@ -1,5 +1,5 @@
/* Timed low level locking for pthread library. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/lll_timedwait_tid.c b/sysdeps/nacl/lll_timedwait_tid.c
index ef544cf84f..07276444f9 100644
--- a/sysdeps/nacl/lll_timedwait_tid.c
+++ b/sysdeps/nacl/lll_timedwait_tid.c
@@ -1,5 +1,5 @@
/* Timed waiting for thread death. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/lowlevellock-futex.h b/sysdeps/nacl/lowlevellock-futex.h
index b614ac8183..5382f685ff 100644
--- a/sysdeps/nacl/lowlevellock-futex.h
+++ b/sysdeps/nacl/lowlevellock-futex.h
@@ -1,5 +1,5 @@
/* Low-level locking access to futex facilities. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -35,7 +35,8 @@
/* Wait while *FUTEXP == VAL for an lll_futex_wake call on FUTEXP. */
#define lll_futex_wait(futexp, val, private) \
- (- __nacl_irt_futex.futex_wait_abs ((volatile int *) (futexp), val, NULL))
+ ((void) (private), \
+ - __nacl_irt_futex.futex_wait_abs ((volatile int *) (futexp), val, NULL))
/* Wait until a lll_futex_wake call on FUTEXP, or TIMEOUT elapses. */
#define lll_futex_timed_wait(futexp, val, timeout, private) \
@@ -60,13 +61,15 @@
if (_err == 0) \
_err = __nacl_irt_futex.futex_wait_abs \
((volatile int *) (futexp), val, _to); \
- -_err; \
+ (void) (private); \
+ -_err; \
})
/* Wake up up to NR waiters on FUTEXP. */
#define lll_futex_wake(futexp, nr, private) \
({ \
int _woken; \
+ (void) (private); \
- __nacl_irt_futex.futex_wake ((volatile int *) (futexp), nr, &_woken); \
})
diff --git a/sysdeps/nacl/lowlevellock.h b/sysdeps/nacl/lowlevellock.h
index 3634f1959a..330c726b20 100644
--- a/sysdeps/nacl/lowlevellock.h
+++ b/sysdeps/nacl/lowlevellock.h
@@ -1,5 +1,5 @@
/* Low-level lock implementation. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/lseek.c b/sysdeps/nacl/lseek.c
index 6451eb50d5..4b5644060f 100644
--- a/sysdeps/nacl/lseek.c
+++ b/sysdeps/nacl/lseek.c
@@ -1,5 +1,5 @@
/* lseek -- Move the file position of a file descriptor. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/lxstat.c b/sysdeps/nacl/lxstat.c
index b14708529d..4dd7cb4e5f 100644
--- a/sysdeps/nacl/lxstat.c
+++ b/sysdeps/nacl/lxstat.c
@@ -1,5 +1,5 @@
/* Get stat information from a file name NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/mkdir.c b/sysdeps/nacl/mkdir.c
index 73b4748bba..e37b789a3f 100644
--- a/sysdeps/nacl/mkdir.c
+++ b/sysdeps/nacl/mkdir.c
@@ -1,5 +1,5 @@
/* Make a directory. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/mmap.c b/sysdeps/nacl/mmap.c
index e9c53267cb..1f35443c78 100644
--- a/sysdeps/nacl/mmap.c
+++ b/sysdeps/nacl/mmap.c
@@ -1,5 +1,5 @@
/* Map addresses from a file or anonymous memory. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/mprotect.c b/sysdeps/nacl/mprotect.c
index 6fd6a4dc06..fe5f8c6f02 100644
--- a/sysdeps/nacl/mprotect.c
+++ b/sysdeps/nacl/mprotect.c
@@ -1,5 +1,5 @@
/* Change memory protections on pages. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/munmap.c b/sysdeps/nacl/munmap.c
index 194e409ae8..8026370f1c 100644
--- a/sysdeps/nacl/munmap.c
+++ b/sysdeps/nacl/munmap.c
@@ -1,5 +1,5 @@
/* Deallocate a region of pages. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/nacl-after-link.sh b/sysdeps/nacl/nacl-after-link.sh
index 199f1b89ac..f59ac0981f 100755
--- a/sysdeps/nacl/nacl-after-link.sh
+++ b/sysdeps/nacl/nacl-after-link.sh
@@ -1,7 +1,7 @@
#!/bin/sh
# Script to validate NaCl binaries after linking.
-# Copyright (C) 2015 Free Software Foundation, Inc.
+# Copyright (C) 2015-2016 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
# The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/nacl-interface-list.h b/sysdeps/nacl/nacl-interface-list.h
index cb337510fc..c5bfba05d5 100644
--- a/sysdeps/nacl/nacl-interface-list.h
+++ b/sysdeps/nacl/nacl-interface-list.h
@@ -1,5 +1,5 @@
/* List of NaCl interface tables used in libraries.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -28,7 +28,7 @@ NACL_MANDATORY_INTERFACE (rtld,
NACL_IRT_FUTEX_v0_1, nacl_irt_futex)
NACL_MANDATORY_INTERFACE (rtld,
NACL_IRT_TLS_v0_1, nacl_irt_tls)
-NACL_MANDATORY_INTERFACE (libc,
+NACL_MANDATORY_INTERFACE (rtld,
NACL_IRT_RESOURCE_OPEN_v0_1, nacl_irt_resource_open)
NACL_MANDATORY_INTERFACE (rtld,
NACL_IRT_CODE_DATA_ALLOC_v0_1,
diff --git a/sysdeps/nacl/nacl-interface-table.c b/sysdeps/nacl/nacl-interface-table.c
index e5401983f9..50d6bb2bab 100644
--- a/sysdeps/nacl/nacl-interface-table.c
+++ b/sysdeps/nacl/nacl-interface-table.c
@@ -1,5 +1,5 @@
/* Define one NaCl interface table.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/nacl-interfaces.c b/sysdeps/nacl/nacl-interfaces.c
index 5dbfadd7f1..bf1cf19523 100644
--- a/sysdeps/nacl/nacl-interfaces.c
+++ b/sysdeps/nacl/nacl-interfaces.c
@@ -1,5 +1,5 @@
/* Using NaCl interface tables.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/nacl-interfaces.h b/sysdeps/nacl/nacl-interfaces.h
index 36f380886c..b7b45bbf38 100644
--- a/sysdeps/nacl/nacl-interfaces.h
+++ b/sysdeps/nacl/nacl-interfaces.h
@@ -1,5 +1,5 @@
/* Using NaCl interface tables.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/nacl-test-wrapper.sh b/sysdeps/nacl/nacl-test-wrapper.sh
index 9bd6d291c0..df5ab40970 100755
--- a/sysdeps/nacl/nacl-test-wrapper.sh
+++ b/sysdeps/nacl/nacl-test-wrapper.sh
@@ -1,7 +1,7 @@
#!/bin/bash
# test-wrapper script for NaCl.
-# Copyright (C) 2015 Free Software Foundation, Inc.
+# Copyright (C) 2015-2016 Free Software Foundation, Inc.
# This file is part of the GNU C Library.
# The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/nacl_interface_ext_supply.c b/sysdeps/nacl/nacl_interface_ext_supply.c
index a1525be58c..d8b2085ba6 100644
--- a/sysdeps/nacl/nacl_interface_ext_supply.c
+++ b/sysdeps/nacl/nacl_interface_ext_supply.c
@@ -1,5 +1,5 @@
/* Interface for the user to replace NaCl IRT interface functions.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/nacl_interface_query.c b/sysdeps/nacl/nacl_interface_query.c
index cae876b3b8..adf1dd4c02 100644
--- a/sysdeps/nacl/nacl_interface_query.c
+++ b/sysdeps/nacl/nacl_interface_query.c
@@ -1,5 +1,5 @@
/* NaCl function exposing IRT interface query.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/nanosleep.c b/sysdeps/nacl/nanosleep.c
index cc60a466c8..013dd5b625 100644
--- a/sysdeps/nacl/nanosleep.c
+++ b/sysdeps/nacl/nanosleep.c
@@ -1,5 +1,5 @@
/* nanosleep -- Sleep for a duration given in nanoseconds. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/open.c b/sysdeps/nacl/open.c
index 381751a9cd..983234fb65 100644
--- a/sysdeps/nacl/open.c
+++ b/sysdeps/nacl/open.c
@@ -1,5 +1,5 @@
/* Open a file by name. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/pthread-pids.h b/sysdeps/nacl/pthread-pids.h
index 1589e5b342..80cd98e06a 100644
--- a/sysdeps/nacl/pthread-pids.h
+++ b/sysdeps/nacl/pthread-pids.h
@@ -1,5 +1,5 @@
/* Initialize pid and tid fields of struct pthread. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/pthread_condattr_setclock.c b/sysdeps/nacl/pthread_condattr_setclock.c
index fc33ec9382..e9b45d26e9 100644
--- a/sysdeps/nacl/pthread_condattr_setclock.c
+++ b/sysdeps/nacl/pthread_condattr_setclock.c
@@ -1,5 +1,5 @@
/* Set the clock for timeouts on a condition variable. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/read.c b/sysdeps/nacl/read.c
index fef0c82604..3f42baf2e2 100644
--- a/sysdeps/nacl/read.c
+++ b/sysdeps/nacl/read.c
@@ -1,5 +1,5 @@
/* read -- Read data from a file descriptor. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/readlink.c b/sysdeps/nacl/readlink.c
index d1c4cadf55..3f417825c8 100644
--- a/sysdeps/nacl/readlink.c
+++ b/sysdeps/nacl/readlink.c
@@ -1,5 +1,5 @@
/* Read the contents of a symbolic link. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/rename.c b/sysdeps/nacl/rename.c
index 8cf1b2f218..58e191335c 100644
--- a/sysdeps/nacl/rename.c
+++ b/sysdeps/nacl/rename.c
@@ -1,5 +1,5 @@
/* Rename a file. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/rmdir.c b/sysdeps/nacl/rmdir.c
index 917bffd4e7..ffe1037894 100644
--- a/sysdeps/nacl/rmdir.c
+++ b/sysdeps/nacl/rmdir.c
@@ -1,5 +1,5 @@
/* Remove a directory. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/sched_yield.c b/sysdeps/nacl/sched_yield.c
index c9c7aaa6bf..294e0689db 100644
--- a/sysdeps/nacl/sched_yield.c
+++ b/sysdeps/nacl/sched_yield.c
@@ -1,5 +1,5 @@
/* sched_yield -- Yield the processor. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/start.c b/sysdeps/nacl/start.c
index a4b6dd33d4..f009c6d302 100644
--- a/sysdeps/nacl/start.c
+++ b/sysdeps/nacl/start.c
@@ -1,5 +1,5 @@
/* Entry-point for programs. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -44,6 +44,10 @@
/* The application defines this, of course. */
extern int main (int argc, char **argv, char **envp);
+/* But maybe it defines this too, in which case it takes precedence. */
+extern int __nacl_main (int argc, char **argv, char **envp)
+ __attribute__ ((weak));
+
/* These are defined in libc. */
extern int __libc_csu_init (int argc, char **argv, char **envp);
extern void __libc_csu_fini (void);
@@ -59,7 +63,7 @@ _start (uint32_t info[])
{
/* The generic code actually assumes that envp follows argv. */
- __libc_start_main (&main,
+ __libc_start_main (&__nacl_main ?: &main,
nacl_startup_argc (info),
nacl_startup_argv (info),
nacl_startup_auxv (info),
diff --git a/sysdeps/nacl/symlink.c b/sysdeps/nacl/symlink.c
index 1454589fda..198902e39e 100644
--- a/sysdeps/nacl/symlink.c
+++ b/sysdeps/nacl/symlink.c
@@ -1,5 +1,5 @@
/* Make a symbolic link. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/tls.h b/sysdeps/nacl/tls.h
index ccf4e83b43..c56ff37d2f 100644
--- a/sysdeps/nacl/tls.h
+++ b/sysdeps/nacl/tls.h
@@ -1,5 +1,5 @@
/* Definition for thread-local data handling. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/truncate.c b/sysdeps/nacl/truncate.c
index cdb8ac7222..0497824cd2 100644
--- a/sysdeps/nacl/truncate.c
+++ b/sysdeps/nacl/truncate.c
@@ -1,5 +1,5 @@
/* Truncate a file (by name). NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/uname-values.h b/sysdeps/nacl/uname-values.h
index b78eac578c..a907234cbc 100644
--- a/sysdeps/nacl/uname-values.h
+++ b/sysdeps/nacl/uname-values.h
@@ -1,5 +1,5 @@
/* Constant values for the uname function to return. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/unlink.c b/sysdeps/nacl/unlink.c
index 6c872c2c5b..76f4ee94de 100644
--- a/sysdeps/nacl/unlink.c
+++ b/sysdeps/nacl/unlink.c
@@ -1,5 +1,5 @@
/* Remove a file. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/utimes.c b/sysdeps/nacl/utimes.c
index 1f0f08a9e0..06b0c0ebcb 100644
--- a/sysdeps/nacl/utimes.c
+++ b/sysdeps/nacl/utimes.c
@@ -1,5 +1,5 @@
/* Change the access and modification times of a file. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/write.c b/sysdeps/nacl/write.c
index d4063fda8d..f452f446c1 100644
--- a/sysdeps/nacl/write.c
+++ b/sysdeps/nacl/write.c
@@ -1,5 +1,5 @@
/* write -- Write data to a file descriptor. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/xstat.c b/sysdeps/nacl/xstat.c
index 8180c9362c..531f7b477b 100644
--- a/sysdeps/nacl/xstat.c
+++ b/sysdeps/nacl/xstat.c
@@ -1,5 +1,5 @@
/* Get stat information from a file name. NaCl version.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/xstatconv.c b/sysdeps/nacl/xstatconv.c
index ecab76c5f0..7223198f0f 100644
--- a/sysdeps/nacl/xstatconv.c
+++ b/sysdeps/nacl/xstatconv.c
@@ -1,5 +1,5 @@
/* Convert between the NaCl ABI's `struct stat' format, and libc's.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
diff --git a/sysdeps/nacl/xstatconv.h b/sysdeps/nacl/xstatconv.h
index fb313a2e62..08c87a9108 100644
--- a/sysdeps/nacl/xstatconv.h
+++ b/sysdeps/nacl/xstatconv.h
@@ -1,5 +1,5 @@
/* Convert between the NaCl ABI's `struct stat' format, and libc's.
- Copyright (C) 2015 Free Software Foundation, Inc.
+ Copyright (C) 2015-2016 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or