2009-04-03 Ken Werner <ken.werner@de.ibm.com>
* libc/machine/spu/sys/linux_syscalls.h: include <sys/types.h>
        (linux_getpid, linux_gettid): Declare.
			
			
This commit is contained in:
		| @@ -1,3 +1,8 @@ | |||||||
|  | 2009-04-03  Ken Werner  <ken.werner@de.ibm.com> | ||||||
|  |  | ||||||
|  | 	* libc/machine/spu/sys/linux_syscalls.h: include <sys/types.h> | ||||||
|  | 	(linux_getpid, linux_gettid): Declare. | ||||||
|  |  | ||||||
| 2009-04-03  Ken Werner  <ken.werner@de.ibm.com> | 2009-04-03  Ken Werner  <ken.werner@de.ibm.com> | ||||||
|  |  | ||||||
| 	* libc/machine/spu/spu-gmon.c: Tweaks to support simultaneous SPU | 	* libc/machine/spu/spu-gmon.c: Tweaks to support simultaneous SPU | ||||||
|   | |||||||
| @@ -32,9 +32,8 @@ Author: Ken Werner <ken.werner@de.ibm.com> | |||||||
|  |  | ||||||
| #ifndef __LINUX_SYSCALLS_H | #ifndef __LINUX_SYSCALLS_H | ||||||
| #define __LINUX_SYSCALLS_H | #define __LINUX_SYSCALLS_H | ||||||
| #ifdef __cplusplus |  | ||||||
| extern "C" { | #include <sys/types.h> | ||||||
| #endif |  | ||||||
|  |  | ||||||
| /* The system call numbers. See kernel source file | /* The system call numbers. See kernel source file | ||||||
|    arch/powerpc/include/asm/unistd.h.  */ |    arch/powerpc/include/asm/unistd.h.  */ | ||||||
| @@ -294,9 +293,17 @@ struct spu_syscall_block | |||||||
|   unsigned long long parm[6];	/* System call arguments.  */ |   unsigned long long parm[6];	/* System call arguments.  */ | ||||||
| }; | }; | ||||||
|  |  | ||||||
|  | #ifdef __cplusplus | ||||||
|  | extern "C" { | ||||||
|  | #endif | ||||||
|  |  | ||||||
| /* Issues a Linux system call.  */ | /* Issues a Linux system call.  */ | ||||||
| int __linux_syscall (struct spu_syscall_block *s); | int __linux_syscall (struct spu_syscall_block *s); | ||||||
|  |  | ||||||
|  | /* Linux system calls.  */ | ||||||
|  | pid_t linux_getpid(void); | ||||||
|  | pid_t linux_gettid(void); | ||||||
|  |  | ||||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||||
| } | } | ||||||
| #endif | #endif | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user