diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2009-04-03 22:34:17 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2009-04-03 22:34:17 +0000 |
commit | 816c3d2968445a74affd54e5e8f77773dd84f296 (patch) | |
tree | 67df6a054ae358275896c995377795879f282f76 | |
parent | c07101aba1d5b34c7de08938661c1a11b465956e (diff) | |
download | newlib-816c3d2968445a74affd54e5e8f77773dd84f296.zip newlib-816c3d2968445a74affd54e5e8f77773dd84f296.tar.gz newlib-816c3d2968445a74affd54e5e8f77773dd84f296.tar.bz2 |
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.
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/machine/spu/sys/linux_syscalls.h | 13 |
2 files changed, 15 insertions, 3 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 1d76096..32b415a 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,5 +1,10 @@ 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> + * libc/machine/spu/spu-gmon.c: Tweaks to support simultaneous SPU profiling. diff --git a/newlib/libc/machine/spu/sys/linux_syscalls.h b/newlib/libc/machine/spu/sys/linux_syscalls.h index b7a85fe..a02e897 100644 --- a/newlib/libc/machine/spu/sys/linux_syscalls.h +++ b/newlib/libc/machine/spu/sys/linux_syscalls.h @@ -32,9 +32,8 @@ Author: Ken Werner <ken.werner@de.ibm.com> #ifndef __LINUX_SYSCALLS_H #define __LINUX_SYSCALLS_H -#ifdef __cplusplus -extern "C" { -#endif + +#include <sys/types.h> /* The system call numbers. See kernel source file arch/powerpc/include/asm/unistd.h. */ @@ -294,9 +293,17 @@ struct spu_syscall_block unsigned long long parm[6]; /* System call arguments. */ }; +#ifdef __cplusplus +extern "C" { +#endif + /* Issues a Linux system call. */ int __linux_syscall (struct spu_syscall_block *s); +/* Linux system calls. */ +pid_t linux_getpid(void); +pid_t linux_gettid(void); + #ifdef __cplusplus } #endif |