valgrind can't find syscall because we didn't put it in <unistd.h>.

Change-Id: I1e47291d4476bd2816138a8cf58f29d4986d39e3
This commit is contained in:
Elliott Hughes
2015-02-19 22:49:44 -08:00
parent 97484d3a9d
commit 4c5891d93d
4 changed files with 8 additions and 11 deletions

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_ */