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:
		@@ -31,6 +31,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
#include <ctype.h>
 | 
					#include <ctype.h>
 | 
				
			||||||
#include <dirent.h>
 | 
					#include <dirent.h>
 | 
				
			||||||
 | 
					#include <errno.h>
 | 
				
			||||||
#include <inttypes.h>
 | 
					#include <inttypes.h>
 | 
				
			||||||
#include <pthread.h>
 | 
					#include <pthread.h>
 | 
				
			||||||
#include <signal.h>
 | 
					#include <signal.h>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -25,20 +25,13 @@
 | 
				
			|||||||
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 | 
					 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 | 
				
			||||||
 * SUCH DAMAGE.
 | 
					 * SUCH DAMAGE.
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifndef _SYS_SYSCALL_H_
 | 
					#ifndef _SYS_SYSCALL_H_
 | 
				
			||||||
#define _SYS_SYSCALL_H_
 | 
					#define _SYS_SYSCALL_H_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <errno.h>
 | 
					#include <asm/unistd.h> /* Linux kernel __NR_* names. */
 | 
				
			||||||
#include <sys/cdefs.h>
 | 
					#include <sys/glibc-syscalls.h> /* glibc-compatible SYS_* aliases. */
 | 
				
			||||||
#include <sys/types.h>
 | 
					 | 
				
			||||||
#include <asm/unistd.h>
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
#include <sys/glibc-syscalls.h> /* glibc-compatible SYS_* aliases for our __NR_* names. */
 | 
					/* The syscall function itself is declared in <unistd.h>, not here. */
 | 
				
			||||||
 | 
					 | 
				
			||||||
__BEGIN_DECLS
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
long syscall(long number, ...);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
__END_DECLS
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif /* _SYS_SYSCALL_H_ */
 | 
					#endif /* _SYS_SYSCALL_H_ */
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -208,6 +208,8 @@ int getpagesize(void);
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
long sysconf(int);
 | 
					long sysconf(int);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					long syscall(long number, ...);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
extern int daemon(int, int);
 | 
					extern int daemon(int, int);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#if defined(__arm__) || (defined(__mips__) && !defined(__LP64__))
 | 
					#if defined(__arm__) || (defined(__mips__) && !defined(__LP64__))
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -34,6 +34,7 @@
 | 
				
			|||||||
#include <stddef.h>
 | 
					#include <stddef.h>
 | 
				
			||||||
#include <sys/cdefs.h>
 | 
					#include <sys/cdefs.h>
 | 
				
			||||||
#include <sys/syscall.h>
 | 
					#include <sys/syscall.h>
 | 
				
			||||||
 | 
					#include <unistd.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
__BEGIN_DECLS
 | 
					__BEGIN_DECLS
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user