From 7d9d54de987d2f5e4a1f646df9eee659c5abc752 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 5 Aug 2013 09:44:23 -0700 Subject: [PATCH] Updates for NaCl header changes. --- sysdeps/nacl/brk.c | 41 ------------------------------ sysdeps/nacl/nacl-interface-list.h | 2 +- sysdeps/nacl/xstatconv.h | 3 +++ 3 files changed, 4 insertions(+), 42 deletions(-) delete mode 100644 sysdeps/nacl/brk.c diff --git a/sysdeps/nacl/brk.c b/sysdeps/nacl/brk.c deleted file mode 100644 index 93dda43f1a2..00000000000 --- 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 - . */ - -#include -#include -#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 6b96dfa5554..649e29b8df0 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 06ab66a64f4..ab7e4ef571b 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 #undef stat #undef fstat +#undef lstat extern int __xstat_conv (int vers, const struct nacl_abi_stat *, void *) internal_function attribute_hidden; -- 2.47.2