The package rpms/nacl-arm-newlib.git has added or updated architecture specific content in
its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/nacl-arm-newlib.git/commit/?id=8a....
Change:
-ExclusiveArch: x86_64
Thanks.
Full change:
============
commit 8a1cdac7df26a34da010832ccbdea88740823013
Author: Tom Callaway <spot(a)fedoraproject.org>
Date: Mon Jul 23 13:26:17 2018 -0400
no longer builds, chromium does not need anymore
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 8515159..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-/nacl-arm-newlib-2.1.0-git373135e.tar.bz2
-/nacl-headers-42.0.2311.135.tar.bz2
diff --git a/crt1.x b/crt1.x
deleted file mode 100644
index 7582a3d..0000000
--- a/crt1.x
+++ /dev/null
@@ -1,13 +0,0 @@
-/*
- * This is a dummy linker script used as crt1.o.
- * The actual startup code is just the _start function defined in a library.
- * We provide this file for two purposes:
- * 1. To keep with the traditional linking sequence that puts crt1.o first.
- * 2. To generate references to the main and exit symbols like the real
- * startup code would, so that they will be brought in from libraries
- * before -lc is encountered in the link. Otherwise a main defined in
- * a library wouldn't be referenced until after that library had already
- * been examined, and _start's call would get an undefined reference.
- */
-
-EXTERN ( main exit _exit )
diff --git a/dead.package b/dead.package
new file mode 100644
index 0000000..31a9674
--- /dev/null
+++ b/dead.package
@@ -0,0 +1 @@
+no longer builds, chromium does not need anymore
diff --git a/nacl-arm-newlib.spec b/nacl-arm-newlib.spec
deleted file mode 100644
index b5fa75f..0000000
--- a/nacl-arm-newlib.spec
+++ /dev/null
@@ -1,124 +0,0 @@
-%global gitver 373135e
-
-%define __debug_install_post : > %{_builddir}/%{?buildsubdir}/debugfiles.list
-%define debug_package %{nil}
-
-Name: nacl-arm-newlib
-Summary: C library intended for use on embedded systems
-Version: 2.1.0
-Release: 8.git%{gitver}%{?dist}
-# Generated from git
-# git clone
https://chromium.googlesource.com/native_client/nacl-newlib
-# (Checkout ID taken from native_client/toolchain_build/toolchain_build.py
-# well... it used to be there anyways. Now just look at the latest checkout.
-# cd nacl-newlib
-# git checkout 373135ec5241d09138aa56603742b94b3b64ea1d
-# cd ..
-# For newlib version, grep PACKAGE_VERSION newlib/libm/configure
-# mv nacl-newlib nacl-arm-newlib-2.1.0-git373135e
-# tar --exclude-vcs -cjf nacl-arm-newlib-2.1.0-git373135e.tar.bz2
nacl-arm-newlib-2.1.0-git373135e
-License: BSD and MIT and LGPLv2+
-Source0: nacl-arm-newlib-%{version}-git%{gitver}.tar.bz2
-# We need to copy some missing header files from chromium
-# mkdir ~/nacl-headers-42.0.2311.135
-# cd chromium-42.0.2311.135/native_client/
-# ./src/trusted/service_runtime/export_header.py src/trusted/service_runtime/include
~/nacl-headers-42.0.2311.135/
-# cd ~/nacl-headers-42.0.2311.135
-# tar cfj ~/nacl-headers-42.0.2311.135.tar.bz2 .
-Source1: nacl-headers-42.0.2311.135.tar.bz2
-# Taken from chromium-42.0.2311.135/native_client/tools/newlib-libc-script
-Source2: newlib-libc-script
-# Taken from chromium-42.0.2311.135/native_client/src/untrusted/pthread/pthread.h
-Source3: pthread.h
-# Taken from chromium-42.0.2311.135/native_client/src/untrusted/pthread/semaphore.h
-Source4: semaphore.h
-# Taken from chromium-42.0.2311.135/native_client/src/untrusted/stubs/crt1.x
-Source5: crt1.x
-URL:
http://sourceware.org/newlib/
-BuildRequires: nacl-arm-binutils nacl-arm-gcc texinfo
-ExclusiveArch: x86_64
-# This is to avoid the duplicate iconv bits
-Requires: nacl-newlib
-
-
-%description
-Newlib is a C library intended for use on embedded systems. It is a
-conglomeration of several library parts, all under free software licenses
-that make them easily usable on embedded products. This is the nacl fork.
-
-%prep
-%setup -q -n %{name}-%{version}-git%{?gitver}
-pushd newlib/libc/sys/nacl
-tar xf %{SOURCE1}
-popd
-cp -a %{SOURCE2} .
-
-%build
-# export NEWLIB_CFLAGS="-O2 -D_I386MACH_ALLOW_HW_INTERRUPTS -DSIGNAL_PROVIDED
-mtls-use-call -fPIC"
-%configure \
- --disable-libgloss \
- --enable-newlib-iconv \
- --enable-newlib-io-long-long \
- --enable-newlib-io-long-double \
- --enable-newlib-io-c99-formats \
- --enable-newlib-mb \
- libc_cv_initfinit_array=yes \
- CFLAGS="-O2 -fPIC" \
- --target=arm-nacl
-
-make %{?_smp_mflags}
-
-%install
-make DESTDIR=%{buildroot} install
-
-# Conflicts with binutils
-rm -rf %{buildroot}%{_infodir}/
-
-# The default pthread.h doesn't work right?
-rm -rf %{buildroot}%{_prefix}/arm-nacl/include/pthread.h
-cp -p %{SOURCE3} %{buildroot}%{_prefix}/arm-nacl/include/
-cp -p %{SOURCE4} %{buildroot}%{_prefix}/arm-nacl/include/
-
-# We have to hack up libc.a to get things working.
-
-# 64bit (default)
-mv %{buildroot}%{_prefix}/arm-nacl/lib/libc.a
%{buildroot}%{_prefix}/arm-nacl/lib/libcrt_common.a
-sed 's|@OBJFORMAT@|"elf32-littlearm-nacl", "elf32-bigarm-nacl",
"elf32-littlearm-nacl"|' newlib-libc-script >
%{buildroot}%{_prefix}/arm-nacl/lib/libc.a
-cp -a %{SOURCE5} %{buildroot}%{_prefix}/arm-nacl/lib/crt1.o
-# These bits are identical in the nacl-newlib package, so we'll use them from there.
-rm -rf %{buildroot}%{_datadir}
-
-%files
-# %%{_datadir}/iconv_data/
-%license COPYING*
-%dir %{_prefix}/arm-nacl/
-%{_prefix}/arm-nacl/include/
-%{_prefix}/arm-nacl/lib/
-
-%changelog
-* Fri Jul 13 2018 Fedora Release Engineering <releng(a)fedoraproject.org> -
2.1.0-8.git373135e
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
-
-* Thu Feb 08 2018 Fedora Release Engineering <releng(a)fedoraproject.org> -
2.1.0-7.git373135e
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
-
-* Thu Aug 03 2017 Fedora Release Engineering <releng(a)fedoraproject.org> -
2.1.0-6.git373135e
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
-
-* Wed Jul 26 2017 Fedora Release Engineering <releng(a)fedoraproject.org> -
2.1.0-5.git373135e
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
-
-* Fri Feb 10 2017 Fedora Release Engineering <releng(a)fedoraproject.org> -
2.1.0-4.git373135e
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
-
-* Mon Feb 29 2016 Tom Callaway <spot(a)fedoraproject.org> 2.1.0-3.git373135e
-- own /usr/arm-nacl/
-- use smp_mflags
-- use cp -p to install headers
-- license file
-
-* Thu Oct 1 2015 Tom Callaway <spot(a)fedoraproject.org> 2.1.0-2.git373135e
-- new stuff
-
-* Sat May 23 2015 Tom Callaway <spot(a)fedoraproject.org> 2.1.0-1.gitbf66148
-- initial package (chromium 42)
diff --git a/newlib-libc-script b/newlib-libc-script
deleted file mode 100644
index 8e79c8f..0000000
--- a/newlib-libc-script
+++ /dev/null
@@ -1,7 +0,0 @@
-/*
- * This is a linker script that gets installed as libc.a for the
- * newlib-based NaCl toolchain. It brings in the constituent
- * libraries that make up what -lc means semantically.
- */
-OUTPUT_FORMAT(@OBJFORMAT@)
-GROUP ( libnacl.a libcrt_common.a )
diff --git a/pthread.h b/pthread.h
deleted file mode 100644
index 11eeaf8..0000000
--- a/pthread.h
+++ /dev/null
@@ -1,800 +0,0 @@
-/*
- * Copyright (c) 2012 The Native Client Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-/** @file
- * Defines the API in the
- * <a href="group___pthread.html">Pthread library</a>
- *
- * @addtogroup Pthread
- * @{
- */
-
-#ifndef _PTHREAD_H
-#define _PTHREAD_H 1
-
-#include <stdint.h>
-#include <sched.h>
-#include <time.h>
-#include <sys/nacl_nice.h>
-#include <sys/queue.h>
-#include <sys/types.h>
-
-/*
- * Signed 32-bit integer supporting CompareAndSwap and AtomicIncrement
- * (see implementations), as well as atomic loads and stores.
- * Instances must be naturally aligned.
- */
-typedef int AtomicInt32;
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-struct timespec;
-struct __nc_basic_thread_data;
-
-/** Mutex type attributes */
-enum {
- /** Fast mutex type; for use with pthread_mutexattr_settype() */
- PTHREAD_MUTEX_FAST_NP,
- /** Recursive mutex type; for use with pthread_mutexattr_settype() */
- PTHREAD_MUTEX_RECURSIVE_NP,
- /** Error-checking mutex type; for use with pthread_mutexattr_settype() */
- PTHREAD_MUTEX_ERRORCHECK_NP,
- PTHREAD_MUTEX_NORMAL = PTHREAD_MUTEX_FAST_NP,
- PTHREAD_MUTEX_RECURSIVE = PTHREAD_MUTEX_RECURSIVE_NP,
- PTHREAD_MUTEX_ERRORCHECK = PTHREAD_MUTEX_ERRORCHECK_NP,
-
- PTHREAD_MUTEX_DEFAULT = PTHREAD_MUTEX_NORMAL
-};
-
-/*
- * The layout of pthread_mutex_t and the static initializers are redefined
- * in newlib's sys/lock.h file (including this file from sys/lock.h will
- * cause include conflicts). When changing one of the definitions, make sure to
- * change the second one.
- */
-/**
- * A structure representing a thread mutex. It should be considered an
- * opaque record; the names of the fields can change anytime.
- */
-typedef struct {
- /*
- * mutex_state is either UNLOCKED (0), LOCKED_WITHOUT_WAITERS (1) or
- * LOCKED_WITH_WAITERS (2). See "enum MutexState".
- */
- volatile int mutex_state;
-
- /**
- * The kind of mutex:
- * PTHREAD_MUTEX_FAST_NP, PTHREAD_MUTEX_RECURSIVE_NP,
- * or PTHREAD_MUTEX_ERRORCHECK_NP
- */
- int mutex_type;
-
- /**
- * ID of the thread that owns the mutex. This is volatile because
- * it is accessed concurrently, and "volatile" is a way to make
- * loads and stores atomic in PNaCl.
- */
- struct __nc_basic_thread_data *volatile owner_thread_id;
-
- /** Recursion depth counter for recursive mutexes */
- uint32_t recursion_counter;
-
- /*
- * Padding is for compatibility with libraries (newlib etc.) that
- * were built before libpthread switched to using futexes, and to
- * match _LOCK_T in newlib's newlib/libc/include/sys/lock.h.
- */
- int unused_padding;
-} pthread_mutex_t;
-
-/**
- * A structure representing mutex attributes. It should be considered an
- * opaque record and accessed only using pthread_mutexattr_settype().
- */
-typedef struct {
- /**
- * The kind of mutex:
- * PTHREAD_MUTEX_FAST_NP, PTHREAD_MUTEX_RECURSIVE_NP,
- * or PTHREAD_MUTEX_ERRORCHECK_NP
- */
- int kind;
-} pthread_mutexattr_t;
-
-/**
- * A structure representing a condition variable. It should be considered an
- * opaque record; the names of the fields can change anytime.
- */
-typedef struct {
- /* This is incremented on each pthread_cond_signal/broadcast() call. */
- int sequence_number;
-
- /*
- * Padding is for compatibility with libraries (newlib etc.) that
- * were built before libpthread switched to using futexes.
- */
- int unused_padding;
-} pthread_cond_t;
-
-/**
- * A structure representing condition variable attributes. Currently
- * Native Client condition variables have no attributes.
- */
-typedef struct {
- int dummy; /**< Reserved; condition variables don't have attributes */
-} pthread_condattr_t;
-
-/**
- * A structure representing a rwlock. It should be considered an
- * opaque record; the names of the fields can change anytime.
- */
-typedef struct {
- pthread_mutex_t mutex; /* mutex for all values in the structure */
- int reader_count;
- int writers_waiting;
- struct __nc_basic_thread_data *writer_thread_id;
- pthread_cond_t read_possible;
- pthread_cond_t write_possible;
-} pthread_rwlock_t;
-
-/**
- * A structure representing rwlock attributes. It should be considered an
- * opaque record.
- */
-typedef struct {
- int type;
-} pthread_rwlockattr_t;
-
-/** A value that represents an uninitialized handle. */
-#define NC_INVALID_HANDLE -1
-
-/** Maximum valid thread ID value. */
-#define MAX_THREAD_ID (0xfffffffe)
-
-/** Illegal thread ID value. */
-#define NACL_PTHREAD_ILLEGAL_THREAD_ID ((pthread_t) 0)
-
-/** Statically initializes a pthread_mutex_t representing a recursive mutex. */
-#define PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP \
- {0, 1, NACL_PTHREAD_ILLEGAL_THREAD_ID, 0, NC_INVALID_HANDLE}
-/** Statically initializes a pthread_mutex_t representing a fast mutex. */
-#define PTHREAD_MUTEX_INITIALIZER \
- {0, 0, NACL_PTHREAD_ILLEGAL_THREAD_ID, 0, NC_INVALID_HANDLE}
-/**
- * Statically initializes a pthread_mutex_t representing an
- * error-checking mutex.
- */
-#define PTHREAD_ERRORCHECK_MUTEX_INITIALIZER_NP \
- {0, 2, NACL_PTHREAD_ILLEGAL_THREAD_ID, 0, NC_INVALID_HANDLE}
-/** Statically initializes a condition variable (pthread_cond_t). */
-#define PTHREAD_COND_INITIALIZER {0, NC_INVALID_HANDLE}
-
-#define PTHREAD_PROCESS_PRIVATE 0
-#define PTHREAD_PROCESS_SHARED 1
-
-
-/* Functions for mutex handling. */
-
-/** @nqPosix
- * Initializes a mutex using attributes in mutex_attr, or using the
- * default values if the latter is NULL.
- *
- * @linkPthread
- *
- * @param mutex The address of the mutex structure to be initialized.
- * @param mutex_attr The address of the attributes structure.
- *
- * @return 0 upon success, 1 otherwise
- */
-extern int pthread_mutex_init(pthread_mutex_t *mutex,
- const pthread_mutexattr_t *mutex_attr);
-
-/** @nqPosix
-* Destroys a mutex.
-*
-* @linkPthread
-*
-* @param mutex The address of the mutex structure to be destroyed.
-*
-* @return 0 upon success, non-zero error code otherwise
-*/
-extern int pthread_mutex_destroy(pthread_mutex_t *mutex);
-
-/** @nqPosix
-* Tries to lock a mutex.
-*
-* @linkPthread
-*
-* @param mutex The address of the mutex structure to be locked.
-*
-* @return 0 upon success, EBUSY if the mutex is locked by another thread,
-* non-zero error code otherwise.
-*/
-extern int pthread_mutex_trylock(pthread_mutex_t *mutex);
-
-/** @nqPosix
-* Locks a mutex.
-*
-* @linkPthread
-*
-* @param mutex The address of the mutex structure to be locked.
-*
-* @return 0 upon success, non-zero error code otherwise.
-*/
-extern int pthread_mutex_lock(pthread_mutex_t *mutex);
-
-/* Wait until lock becomes available, or specified time passes. */
-extern int pthread_mutex_timedlock(pthread_mutex_t *mutex,
- const struct timespec *abstime);
-
-/** @nqPosix
-* Unlocks a mutex.
-*
-* @linkPthread
-*
-* @param mutex The address of the mutex structure to be unlocked.
-*
-* @return 0 upon success, non-zero error code otherwise.
-*/
-extern int pthread_mutex_unlock(pthread_mutex_t *mutex);
-
-/* Mutex attributes manipulation */
-
-/** @nqPosix
-* Initializes mutex attributes.
-*
-* @linkPthread
-*
-* @param attr The address of the attributes structure to be initialized.
-*
-* @return 0.
-*/
-extern int pthread_mutexattr_init(pthread_mutexattr_t *attr);
-
-/** @nqPosix
-* Destroys mutex attributes structure.
-*
-* @linkPthread
-*
-* @param attr The address of the attributes structure to be destroyed.
-*
-* @return 0.
-*/
-extern int pthread_mutexattr_destroy(pthread_mutexattr_t *attr);
-
-/** @nqPosix
-* Sets the mutex type: fast, recursive or error-checking.
-*
-* @linkPthread
-*
-* @param attr The address of the attributes structure.
-* @param kind PTHREAD_MUTEX_FAST_NP, PTHREAD_MUTEX_RECURSIVE_NP or
-* PTHREAD_MUTEX_ERRORCHECK_NP.
-*
-* @return 0 on success, -1 for illegal values of kind.
-*/
-extern int pthread_mutexattr_settype(pthread_mutexattr_t *attr,
- int kind);
-
-/** @nqPosix
-* Gets the mutex type: fast, recursive or error-checking.
-*
-* @linkPthread
-*
-* @param attr The address of the attributes structure.
-* @param kind Pointer to the location where the mutex kind value is copied.
-*
-* @return 0.
-*/
-extern int pthread_mutexattr_gettype(const pthread_mutexattr_t *attr,
- int *kind);
-
-/* Functions for handling conditional variables. */
-
-/** @nqPosix
-* Initializes a condition variable.
-*
-* @linkPthread
-*
-* @param cond Pointer to the condition variable structure.
-* @param cond_attr Pointer to the attributes structure, should be NULL as
-* Native Client does not support any attributes for a condition variable at
-* this stage.
-*
-* @return 0 for success, 1 otherwise.
-*/
-extern int pthread_cond_init(pthread_cond_t *cond,
- const pthread_condattr_t *cond_attr);
-
-/** @nqPosix
-* Destroys a condition variable.
-*
-* @linkPthread
-*
-* @param cond Pointer to the condition variable structure.
-*
-* @return 0 for success, non-zero error code otherwise.
-*/
-extern int pthread_cond_destroy(pthread_cond_t *cond);
-
-/** @nqPosix
-* Signals a condition variable, waking up one of the threads waiting on it.
-*
-* @linkPthread
-*
-* @param cond Pointer to the condition variable structure.
-*
-* @return 0 for success, non-zero error code otherwise.
-*/
-extern int pthread_cond_signal(pthread_cond_t *cond);
-
-/** @nqPosix
-* Wakes up all threads waiting on a condition variable.
-*
-* @linkPthread
-*
-* @param cond Pointer to the condition variable structure.
-*
-* @return 0 for success, non-zero error code otherwise.
-*/
-extern int pthread_cond_broadcast(pthread_cond_t *cond);
-
-/** @nqPosix
-* Waits for a condition variable to be signaled or broadcast.
-*
-* @linkPthread
-*
-* @param cond Pointer to the condition variable structure.
-* @param mutex Pointer to the mutex structure. The mutex is assumed to be locked
-* when this function is called.
-*
-* @return 0 for success, non-zero error code otherwise.
-*/
-extern int pthread_cond_wait(pthread_cond_t *cond,
- pthread_mutex_t *mutex);
-
-/** @nqPosix
-* Waits for condition variable cond to be signaled or broadcast until
-* abstime.
-*
-* @linkPthread
-*
-* @param cond Pointer to the condition variable structure.
-* @param mutex Pointer to the mutex structure. The mutex is assumed to be locked
-* when this function is called.
-* @param abstime Absolute time specification; zero is the beginning of the epoch
-* (00:00:00 GMT, January 1, 1970).
-*
-* @return 0 for success, non-zero error code otherwise.
-*/
-int pthread_cond_timedwait_abs(pthread_cond_t *cond,
- pthread_mutex_t *mutex,
- const struct timespec *abstime);
-
-/** @nqPosix
-* Waits for condition variable cond to be signaled or broadcast; wait time is
-* limited by reltime.
-*
-* @linkPthread
-*
-* @param cond Pointer to the condition variable structure.
-* @param mutex Pointer to the mutex structure. The mutex is assumed to be locked
-* when this function is called.
-* @param reltime Time specification, relative to the current time.
-*
-* @return 0 for success, non-zero error code otherwise.
-*/
-int pthread_cond_timedwait_rel(pthread_cond_t *cond,
- pthread_mutex_t *mutex,
- const struct timespec *reltime);
-
-/**
- * Defined for POSIX compatibility; pthread_cond_timedwait() is actually
- * a macro calling pthread_cond_timedwait_abs().
- */
-#define pthread_cond_timedwait pthread_cond_timedwait_abs
-
-/* Functions for rwlock handling. */
-
-int pthread_rwlockattr_init(pthread_rwlockattr_t *attr);
-int pthread_rwlockattr_getpshared(const pthread_rwlockattr_t *attr,
- int *pshared);
-int pthread_rwlockattr_setpshared(pthread_rwlockattr_t *attr, int pshared);
-int pthread_rwlockattr_destroy(pthread_rwlockattr_t *attr);
-
-int pthread_rwlock_init(pthread_rwlock_t *rwlock,
- const pthread_rwlockattr_t *attr);
-
-int pthread_rwlock_rdlock(pthread_rwlock_t *rwlock);
-int pthread_rwlock_tryrdlock(pthread_rwlock_t *rwlock);
-int pthread_rwlock_timedrdlock(pthread_rwlock_t *rwlock,
- const struct timespec *abstime);
-
-
-int pthread_rwlock_wrlock(pthread_rwlock_t *rwlock);
-int pthread_rwlock_trywrlock(pthread_rwlock_t *rwlock);
-int pthread_rwlock_timedwrlock(pthread_rwlock_t *rwlock,
- const struct timespec *abstime);
-
-int pthread_rwlock_unlock(pthread_rwlock_t *rwlock);
-int pthread_rwlock_destroy(pthread_rwlock_t *rwlock);
-
-
-/* Threads */
-/** Thread entry function type. */
-typedef void *(*nc_thread_function)(void *p);
-/** Thread identifier type. */
-typedef struct __nc_basic_thread_data *pthread_t;
-
-/** A structure representing thread attributes. */
-typedef struct {
- int joinable; /**< 1 if the thread is joinable, 0 otherwise */
- size_t stacksize; /**< The requested thread stack size in bytes. */
-} pthread_attr_t;
-
-
-/** Joinable thread type; for use with pthread_attr_setdetachstate(). */
-#define PTHREAD_CREATE_JOINABLE 1
-/** Detached thread type; for use with pthread_attr_setdetachstate(). */
-#define PTHREAD_CREATE_DETACHED 0
-
-/** For use with pthread_attr_setscope(). */
-#define PTHREAD_SCOPE_PROCESS 0
-/** For use with pthread_attr_setscope(). */
-#define PTHREAD_SCOPE_SYSTEM 1
-
-/** Minimum stack size; for use with pthread_attr_setstacksize(). */
-#define PTHREAD_STACK_MIN (1024)
-
-/* default stack size */
-#define PTHREAD_STACK_DEFAULT (512 * 1024)
-
-/* Thread functions */
-
-/** @nqPosix
-* Creates a thread.
-*
-* @linkPthread
-*
-* @param[out] thread_id A pointer to the location where the identifier of the
-* newly created thread is stored on success.
-* @param attr Thread attributes structure.
-* @param start_routine Thread function.
-* @param arg A single argument that is passed to the thread function.
-*
-* @return 0 for success, non-zero error code otherwise.
-*/
-extern int pthread_create(pthread_t *thread_id,
- const pthread_attr_t *attr,
- void *(*start_routine)(void *p),
- void *arg);
-
-/** @nqPosix
-* Obtains the identifier of the current thread.
-*
-* @linkPthread
-*
-* @return Thread ID of the current thread.
-*/
-extern pthread_t pthread_self(void);
-
-/** @nqPosix
-* Compares two thread identifiers.
-*
-* @linkPthread
-*
-* @param thread1 Thread ID of thread A.
-* @param thread2 Thread ID of thread B.
-*
-* @return 1 if both identifiers belong to the same thread, 0 otherwise.
-*/
-extern int pthread_equal(pthread_t thread1, pthread_t thread2);
-
-/** @nqPosix
-* Terminates the calling thread.
-*
-* @linkPthread
-*
-* @param retval Return value of the thread.
-*
-* @return The function never returns.
-*/
-extern void pthread_exit(void *retval);
-
-/** @nqPosix
-* Makes the calling thread wait for termination of another thread.
-*
-* @linkPthread
-*
-* @param th The identifier of the thread to wait for.
-* @param thread_return If not NULL, points to the location where the return
-* value of the terminated thread is stored upon completion.
-*
-* @return 0 on success, non-zero error code otherwise.
-*/
-extern int pthread_join(pthread_t th, void **thread_return);
-
-/** @nqPosix
-* Indicates that the specified thread is never to be joined with pthread_join().
-* The resources of that thread will therefore be freed immediately when it
-* terminates, instead of waiting for another thread to perform pthread_join()
-* on it.
-*
-* @linkPthread
-*
-* @param th Thread identifier.
-*
-* @return 0 on success, non-zero error code otherwise.
-*/
-extern int pthread_detach(pthread_t th);
-
-/** @nqPosix
-* Sends a signal to a thread. (Currently only a stub implementation.)
-*
-* @linkPthread
-*
-* @param thread_id The identifier of the thread to receive the signal.
-* @param sig The signal value to send.
-*
-* @return 0 for success, non-zero error code otherwise.
-*/
-extern int pthread_kill(pthread_t thread_id,
- int sig);
-
-/* Functions for handling thread attributes. */
-
-/** @nqPosix
-* Initializes thread attributes structure attr with default attributes
-* (detachstate is PTHREAD_CREATE_JOINABLE).
-*
-* @linkPthread
-*
-* @param attr Pointer to thread attributes structure.
-*
-* @return 0 on success, non-zero error code otherwise.
-*/
-extern int pthread_attr_init(pthread_attr_t *attr);
-
-/** @nqPosix
-* Destroys a thread attributes structure.
-*
-* @linkPthread
-*
-* @param attr Pointer to thread attributes structure.
-*
-* @return 0 on success, non-zero error code otherwise.
-*/
-extern int pthread_attr_destroy(pthread_attr_t *attr);
-
-/** @nqPosix
-* Sets the detachstate attribute in thread attributes.
-*
-* @linkPthread
-*
-* @param attr Pointer to thread attributes structure.
-* @param detachstate Value to be set, determines whether the thread is joinable.
-*
-* @return 0 on success, non-zero error code otherwise.
-*/
-extern int pthread_attr_setdetachstate(pthread_attr_t *attr,
- int detachstate);
-
-/** @nqPosix
-* Gets the detachstate attribute from thread attributes.
-*
-* @linkPthread
-*
-* @param attr Pointer to thread attributes structure.
-* @param detachstate Location where the value of `detachstate` is stored upon
-* successful completion.
-*
-* @return 0 on success, non-zero error code otherwise.
-*/
-extern int pthread_attr_getdetachstate(const pthread_attr_t *attr,
- int *detachstate);
-
-/** @nqPosix
-* Sets the contention scope attribute in thread attributes.
-* Native Client (like Linux) only supports PTHREAD_SCOPE_SYSTEM.
-*
-* @linkPthread
-*
-* @param attr Pointer to thread attributes structure.
-* @param scope Value to be set, determines the contention scope of the thread.
-*
-* @return 0 on success, non-zero error code otherwise.
-*/
-extern int pthread_attr_setscope(pthread_attr_t *attr, int scope);
-
-/** @nqPosix
-* Gets the contention scope attribute from thread attributes.
-* Native Client (like Linux) only supports PTHREAD_SCOPE_SYSTEM.
-*
-* @linkPthread
-*
-* @param attr Pointer to thread attributes structure.
-* @param scope Location where the value of `scope` is stored upon
-* successful completion.
-*
-* @return 0 on success, non-zero error code otherwise.
-*/
-extern int pthread_attr_getscope(const pthread_attr_t *attr, int *scope);
-
-/** @nqPosix
-* Sets the stacksize attribute in thread attributes. Has no effect if the
-* size is less than PTHREAD_STACK_MIN.
-*
-* @linkPthread
-*
-* @param attr Pointer to thread attributes structure.
-* @param stacksize Value to be set, determines the minimum stack size.
-*
-* @return 0 on success, non-zero error code otherwise.
-*/
-extern int pthread_attr_setstacksize(pthread_attr_t *attr,
- size_t stacksize);
-
-/** @nqPosix
-* Gets the stacksize attribute in thread attributes.
-*
-* @linkPthread
-*
-* @param attr Pointer to thread attributes structure.
-* @param stacksize Value to be set, determines the minimum stack size.
-*
-* @return 0 on success, non-zero error code otherwise.
-*/
-extern int pthread_attr_getstacksize(const pthread_attr_t *attr,
- size_t *stacksize);
-
-/** @nqPosix
- * Gets the maximum address of the stack (assuming stacks grow
- * downwards) of the given thread.
- *
- * If the given thread exits concurrently with the call to this
- * function, the behaviour is undefined.
- *
- * Note that in the future this may be removed and replaced with an
- * implementation of pthread_getattr_np(), for consistency with Linux
- * glibc. pthread_getattr_np() + pthread_attr_getstack() return the
- * stack base (minimum) address and stack size. However, that is
- * currently unimplementable under NaCl, because NaCl does not provide
- * a way to determine the initial thread's stack size. See:
- *
https://code.google.com/p/nativeclient/issues/detail?id=3431
- */
-extern int pthread_get_stack_end_np(pthread_t tid, void **stack_end);
-
-/* Functions for handling thread-specific data. */
-
-/** Thread-specific key identifier type */
-typedef int pthread_key_t;
-
-/** Number of available keys for thread-specific data. */
-#define PTHREAD_KEYS_MAX 512
-
-/** @nqPosix
-* Creates a key value identifying a location in the thread-specific
-* data area.
-*
-* @linkPthread
-*
-* @param key Pointer to the location where the value of the key is stored upon
-* successful completion.
-* @param destr_function Pointer to a cleanup function that is called if the
-* thread terminates while the key is still allocated.
-*
-* @return 0 on success, non-zero error code otherwise.
-*/
-extern int pthread_key_create(pthread_key_t *key,
- void (*destr_function)(void *p));
-
-
-/** @nqPosix
-* Destroys a thread-specific data key.
-*
-* @linkPthread
-*
-* @param key Key value, previously obtained using pthread_key_create().
-*
-* @return 0 on success, non-zero error code otherwise.
-*/
-extern int pthread_key_delete(pthread_key_t key);
-
-/** @nqPosix
-* Stores a value in the thread-specific data slot identified by a key value.
-*
-* @linkPthread
-*
-* @param key Key value, previously obtained using pthread_key_create().
-* @param pointer The value to be stored.
-*
-* @return 0 on success, non-zero error code otherwise.
-*/
-extern int pthread_setspecific(pthread_key_t key,
- const void *pointer);
-
-/** @nqPosix
-* Gets the value currently stored at the thread-specific data slot
-* identified by the key.
-*
-* @linkPthread
-*
-* @param key Key value, previously obtained using pthread_key_create().
-*
-* @return The value that was previously stored using pthread_setspecific is
-* returned on success, otherwise NULL.
-*/
-extern void *pthread_getspecific(pthread_key_t key);
-
-/**
- * A structure describing a control block
- * used with the pthread_once() function.
- * It should be considered an opaque record;
- * the names of the fields can change anytime.
- */
-typedef struct {
- /** A flag: 1 if the function was already called, 0 if it wasn't */
- AtomicInt32 done;
-
- /** Synchronization lock for the flag */
- pthread_mutex_t lock;
-} pthread_once_t;
-
-/** Static initializer for pthread_once_t. */
-#define PTHREAD_ONCE_INIT {0, PTHREAD_MUTEX_INITIALIZER}
-
-/** @nqPosix
-* Ensures that a piece of initialization code is executed at most once.
-*
-* @linkPthread
-*
-* @param __once_control Points to a static or extern variable statically
-* initialized to PTHREAD_ONCE_INIT.
-* @param __init_routine A pointer to the initialization function.
-*
-* @return 0.
-*/
-extern int pthread_once(pthread_once_t *__once_control,
- void (*__init_routine)(void));
-
-/** @nqPosix
-* Sets the scheduling priority of a thread.
-*
-* @linkPthread
-*
-* @param thread_id Identifies the thread to operate on.
-* @param prio Scheduling priority to apply to that thread.
-*
-* @return 0 on success, non-zero error code otherwise.
-*/
-extern int pthread_setschedprio(pthread_t thread_id, int prio);
-
-/*
- * NOTE: this is only declared here to shut up
- * some warning in the c++ system header files.
- * We do not define this function anywhere.
- */
-
-extern int pthread_cancel(pthread_t th);
-
-/*
- * NOTE: There are only stub implementations of these functions.
- */
-
-void pthread_cleanup_push(void (*func)(void *cleanup_arg), void *arg);
-void pthread_cleanup_pop(int execute);
-
-/**
-* @} End of PTHREAD group
-*/
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* pthread.h */
diff --git a/semaphore.h b/semaphore.h
deleted file mode 100644
index 105df37..0000000
--- a/semaphore.h
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * Copyright (c) 2011 The Native Client Authors. All rights reserved.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-/*
- * NativeClient pthread library semaphores API
- */
-
-#ifndef NATIVE_CLIENT_SRC_UNTRUSTED_PTHREAD_NC_SEMPAHPORE_H_
-#define NATIVE_CLIENT_SRC_UNTRUSTED_PTHREAD_NC_SEMPAHPORE_H_ 1
-
-#include <limits.h>
-#include <sys/types.h>
-
-
-/* A pthread semaphore object */
-typedef struct {
- /* Current value of the semaphore. This is always non-negative. */
- volatile int count;
- /*
- * Number of threads waiting for the semaphore in sem_wait(); always
- * non-negative. This is used as an optimization to avoid
- * unnecessary futex_wake() calls in sem_post().
- */
- volatile int nwaiters;
-} sem_t;
-
-/*
- * Maximum value the semaphore can have. This matches glibc's value.
- */
-#define SEM_VALUE_MAX INT_MAX
-
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/* Initialize semaphore object SEM to VALUE. If PSHARED then share it
- with other processes. */
-extern int sem_init(sem_t *sem, int pshared, unsigned int value);
-
-/* Free resources associated with semaphore object SEM. */
-extern int sem_destroy(sem_t *sem);
-
-/* Wait for SEM being posted. */
-extern int sem_wait(sem_t *sem);
-
-/* TODO(gregoryd) - add support for sem_timedwait later */
-#if 0
-/* Similar to `sem_wait' but wait only until ABSTIME. */
-extern int sem_timedwait(sem_t *sem,
- const struct timespec *abstime);
-#endif
-
-/* Test whether SEM is posted. */
-extern int sem_trywait(sem_t *sem);
-
-/* Post SEM. */
-extern int sem_post(sem_t *sem);
-
-/* Get current value of SEM and store it in *SVAL. */
-extern int sem_getvalue(sem_t *sem, int *sval);
-
-#ifdef __cplusplus
-}
-#endif
-
-#endif /* NATIVE_CLIENT_SRC_UNTRUSTED_PTHREAD_NC_SEMPAHPORE_H_ */
diff --git a/sources b/sources
deleted file mode 100644
index c947702..0000000
--- a/sources
+++ /dev/null
@@ -1,2 +0,0 @@
-a74942b37fce92a2759a3a9bf1c921be nacl-arm-newlib-2.1.0-git373135e.tar.bz2
-8244d099acba87ad1e5346c0f4b3ad87 nacl-headers-42.0.2311.135.tar.bz2