Merge "valgrind can't find syscall because we didn't put it in <unistd.h>."
This commit is contained in:
commit
c39eef71a7
@ -31,6 +31,7 @@
|
||||
|
||||
#include <ctype.h>
|
||||
#include <dirent.h>
|
||||
#include <errno.h>
|
||||
#include <inttypes.h>
|
||||
#include <pthread.h>
|
||||
#include <signal.h>
|
||||
|
@ -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_ */
|
||||
|
@ -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__))
|
||||
|
@ -34,6 +34,7 @@
|
||||
#include <stddef.h>
|
||||
#include <sys/cdefs.h>
|
||||
#include <sys/syscall.h>
|
||||
#include <unistd.h>
|
||||
|
||||
__BEGIN_DECLS
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user