diff options
author | Roland McGrath <roland@hack.frob.com> | 2013-08-05 09:44:23 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2013-08-05 09:44:23 -0700 |
commit | 7d9d54de987d2f5e4a1f646df9eee659c5abc752 (patch) | |
tree | 762c88365be95e42ba5628f0d2f5b856d49f5317 | |
parent | f8b5f933ff38077aef8e441265c0873bddab1e0f (diff) | |
download | glibc-7d9d54de987d2f5e4a1f646df9eee659c5abc752.tar glibc-7d9d54de987d2f5e4a1f646df9eee659c5abc752.tar.gz glibc-7d9d54de987d2f5e4a1f646df9eee659c5abc752.tar.bz2 glibc-7d9d54de987d2f5e4a1f646df9eee659c5abc752.zip |
Updates for NaCl header changes.
-rw-r--r-- | sysdeps/nacl/brk.c | 41 | ||||
-rw-r--r-- | sysdeps/nacl/nacl-interface-list.h | 2 | ||||
-rw-r--r-- | sysdeps/nacl/xstatconv.h | 3 |
3 files changed, 4 insertions, 42 deletions
diff --git a/sysdeps/nacl/brk.c b/sysdeps/nacl/brk.c deleted file mode 100644 index 93dda43f1a..0000000000 --- a/sysdeps/nacl/brk.c +++ /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) diff --git a/sysdeps/nacl/nacl-interface-list.h b/sysdeps/nacl/nacl-interface-list.h index 6b96dfa555..649e29b8df 100644 --- a/sysdeps/nacl/nacl-interface-list.h +++ b/sysdeps/nacl/nacl-interface-list.h @@ -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) diff --git a/sysdeps/nacl/xstatconv.h b/sysdeps/nacl/xstatconv.h index 06ab66a64f..ab7e4ef571 100644 --- a/sysdeps/nacl/xstatconv.h +++ b/sysdeps/nacl/xstatconv.h @@ -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; |