am c39eef71: Merge "valgrind can\'t find syscall because we didn\'t put it in <unistd.h>."

* commit 'c39eef71a7f66b69e2216a51d0e7fbc1796d0696':
  valgrind can't find syscall because we didn't put it in <unistd.h>.
This commit is contained in:
Elliott Hughes
2015-02-20 17:02:25 +00:00
committed by Android Git Automerger
4 changed files with 8 additions and 11 deletions

View File

@@ -31,6 +31,7 @@
#include <ctype.h>
#include <dirent.h>
#include <errno.h>
#include <inttypes.h>
#include <pthread.h>
#include <signal.h>

View File

@@ -25,20 +25,13 @@
* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*/
#ifndef _SYS_SYSCALL_H_
#define _SYS_SYSCALL_H_
#include <errno.h>
#include <sys/cdefs.h>
#include <sys/types.h>
#include <asm/unistd.h>
#include <asm/unistd.h> /* Linux kernel __NR_* names. */
#include <sys/glibc-syscalls.h> /* glibc-compatible SYS_* aliases. */
#include <sys/glibc-syscalls.h> /* glibc-compatible SYS_* aliases for our __NR_* names. */
__BEGIN_DECLS
long syscall(long number, ...);
__END_DECLS
/* The syscall function itself is declared in <unistd.h>, not here. */
#endif /* _SYS_SYSCALL_H_ */

View File

@@ -208,6 +208,8 @@ int getpagesize(void);
long sysconf(int);
long syscall(long number, ...);
extern int daemon(int, int);
#if defined(__arm__) || (defined(__mips__) && !defined(__LP64__))

View File

@@ -34,6 +34,7 @@
#include <stddef.h>
#include <sys/cdefs.h>
#include <sys/syscall.h>
#include <unistd.h>
__BEGIN_DECLS