1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00
2007-04-27  Ulrich Drepper  <drepper@redhat.com>
	[BZ #4306]
	* sysdeps/unix/sysv/linux/timer_create.c (timer_create):
	Initialize the whole sigevent structure to appease valgrind.
This commit is contained in:
Ulrich Drepper
2007-04-28 04:03:38 +00:00
parent 109f51f2b2
commit f672076efa
3 changed files with 15 additions and 11 deletions

View File

@ -16,6 +16,7 @@
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */
#include <errno.h>
#include <sched.h>
#include <sysdep.h>
@ -25,11 +26,9 @@ sched_getcpu (void)
{
#ifdef __NR_getcpu
unsigned int cpu;
INTERNAL_SYSCALL_DECL (err);
int r = INTERNAL_SYSCALL (getcpu, err, &cpu, NULL, NULL);
int r = INLINE_SYSCALL (getcpu, 3, &cpu, NULL, NULL);
return (INTERNAL_SYSCALL_ERROR (r, err)
? INTERNAL_SYSCALL_ERRNO (r, err) : cpu);
return r == -1 ? r : cpu;
#else
__set_errno (ENOSYS);
return -1;