valgrind can't find syscall because we didn't put it in <unistd.h>.
Change-Id: I1e47291d4476bd2816138a8cf58f29d4986d39e3
This commit is contained in:
@@ -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_ */
|
||||
|
Reference in New Issue
Block a user