]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Updates for NaCl header changes.
authorRoland McGrath <roland@hack.frob.com>
Mon, 5 Aug 2013 16:44:23 +0000 (09:44 -0700)
committerRoland McGrath <roland@hack.frob.com>
Mon, 5 Aug 2013 16:44:23 +0000 (09:44 -0700)
sysdeps/nacl/brk.c [deleted file]
sysdeps/nacl/nacl-interface-list.h
sysdeps/nacl/xstatconv.h

diff --git a/sysdeps/nacl/brk.c b/sysdeps/nacl/brk.c
deleted file mode 100644 (file)
index 93dda43..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-/* brk -- Adjust the "break" at the end of initial data.  NaCl version.
-   Copyright (C) 2013 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/>.  */
-
-#include <errno.h>
-#include <unistd.h>
-#include "nacl-interfaces.h"
-
-/* sbrk.c expects this.  */
-void *__curbrk;
-
-/* Set the end of the process's data space to ADDR.
-   Return 0 if successful, -1 if not.  */
-int
-__brk (void *addr)
-{
-  int error = __nacl_irt_memory.sysbrk (&addr);
-  if (__glibc_unlikely (error))
-    {
-      __set_errno (error);
-      return -1;
-    }
-
-  __curbrk = addr;
-  return 0;
-}
-weak_alias (__brk, brk)
index 6b96dfa555474b6cf4c43bbc070f7324797e05fe..649e29b8df028b5a8ae7ece58a486a9cbb4aac18 100644 (file)
@@ -1,7 +1,7 @@
 NACL_MANDATORY_INTERFACE (NACL_IRT_BASIC_v0_1, nacl_irt_basic)
 NACL_MANDATORY_INTERFACE (NACL_IRT_FDIO_v0_1, nacl_irt_fdio)
 NACL_MANDATORY_INTERFACE (NACL_IRT_FILENAME_v0_1, nacl_irt_filename)
-NACL_MANDATORY_INTERFACE (NACL_IRT_MEMORY_v0_2, nacl_irt_memory)
+NACL_MANDATORY_INTERFACE (NACL_IRT_MEMORY_v0_3, nacl_irt_memory)
 NACL_MANDATORY_INTERFACE (NACL_IRT_DYNCODE_v0_1, nacl_irt_dyncode)
 NACL_MANDATORY_INTERFACE (NACL_IRT_THREAD_v0_1, nacl_irt_thread)
 NACL_MANDATORY_INTERFACE (NACL_IRT_MUTEX_v0_1, nacl_irt_mutex)
index 06ab66a64f4b16de08a8ed3ceb52a6bbb657c0da..ab7e4ef571b7702020f61baf9a007cfa3d9fbe78 100644 (file)
@@ -27,9 +27,12 @@ struct stat;
 #define stat    __avoid_nacl_stat
 #undef  fstat
 #define fstat   __avoid_nacl_fstat
+#undef  lstat
+#define lstat   __avoid_nacl_lstat
 #include <native_client/src/trusted/service_runtime/include/sys/stat.h>
 #undef  stat
 #undef  fstat
+#undef  lstat
 
 extern int __xstat_conv (int vers, const struct nacl_abi_stat *, void *)
   internal_function attribute_hidden;