mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
* posix/tst-getaddrinfo2.c: Include stdlib.h and string.h. (do_test): Use %p instead of 0x%08X to print a pointer. * malloc/malloc.c: Include stdio-common/_itoa.h.
This commit is contained in:
@ -1,7 +1,9 @@
|
|||||||
2004-10-06 Jakub Jelinek <jakub@redhat.com>
|
2004-10-06 Jakub Jelinek <jakub@redhat.com>
|
||||||
|
|
||||||
* sysdeps/s390/jmpbuf-unwind.h: Include bits/wordsize.h.
|
* posix/tst-getaddrinfo2.c: Include stdlib.h and string.h.
|
||||||
(JMPBUF_CFA_UNWINDS_ADJ): Subtract 96 resp. 160 bytes from CFA.
|
(do_test): Use %p instead of 0x%08X to print a pointer.
|
||||||
|
|
||||||
|
* malloc/malloc.c: Include stdio-common/_itoa.h.
|
||||||
|
|
||||||
2004-10-05 Ulrich Drepper <drepper@redhat.com>
|
2004-10-05 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
@ -257,6 +257,10 @@
|
|||||||
|
|
||||||
#include <malloc-machine.h>
|
#include <malloc-machine.h>
|
||||||
|
|
||||||
|
#ifdef _LIBC
|
||||||
|
#include <stdio-common/_itoa.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
@ -772,8 +772,8 @@ __reclaim_stacks (void)
|
|||||||
|
|
||||||
#if HP_TIMING_AVAIL
|
#if HP_TIMING_AVAIL
|
||||||
/* Find a thread given the thread ID. */
|
/* Find a thread given the thread ID. */
|
||||||
struct pthread *
|
|
||||||
attribute_hidden
|
attribute_hidden
|
||||||
|
struct pthread *
|
||||||
__find_thread_by_id (pid_t tid)
|
__find_thread_by_id (pid_t tid)
|
||||||
{
|
{
|
||||||
struct pthread *result = NULL;
|
struct pthread *result = NULL;
|
||||||
|
@ -19,8 +19,7 @@
|
|||||||
|
|
||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <pthread-functions.h>
|
#include <pthreadP.h>
|
||||||
#include <pthreaddef.h>
|
|
||||||
|
|
||||||
extern void __pthread_cleanup_upto (__jmp_buf env, char *targetframe);
|
extern void __pthread_cleanup_upto (__jmp_buf env, char *targetframe);
|
||||||
#pragma weak __pthread_cleanup_upto
|
#pragma weak __pthread_cleanup_upto
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Clean up stack frames unwound by longjmp. Linux/s390 version.
|
/* Clean up stack frames unwound by longjmp. Linux/s390 version.
|
||||||
Copyright (C) 2003 Free Software Foundation, Inc.
|
Copyright (C) 2003, 2004 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
@ -19,8 +19,7 @@
|
|||||||
|
|
||||||
#include <setjmp.h>
|
#include <setjmp.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <pthread-functions.h>
|
#include <pthreadP.h>
|
||||||
#include <pthreaddef.h>
|
|
||||||
|
|
||||||
extern void __pthread_cleanup_upto (__jmp_buf env, char *targetframe);
|
extern void __pthread_cleanup_upto (__jmp_buf env, char *targetframe);
|
||||||
#pragma weak __pthread_cleanup_upto
|
#pragma weak __pthread_cleanup_upto
|
||||||
|
@ -100,7 +100,7 @@ typedef union
|
|||||||
__extension__ unsigned long long int __wakeup_seq;
|
__extension__ unsigned long long int __wakeup_seq;
|
||||||
__extension__ unsigned long long int __woken_seq;
|
__extension__ unsigned long long int __woken_seq;
|
||||||
void *__mutex;
|
void *__mutex;
|
||||||
int __nwaiters;
|
unsigned int __nwaiters;
|
||||||
unsigned int __broadcast_seq;
|
unsigned int __broadcast_seq;
|
||||||
} __data;
|
} __data;
|
||||||
char __size[__SIZEOF_PTHREAD_COND_T];
|
char __size[__SIZEOF_PTHREAD_COND_T];
|
||||||
|
@ -58,6 +58,14 @@ do_test (void)
|
|||||||
#if defined _POSIX_THREAD_CPUTIME && _POSIX_THREAD_CPUTIME >= 0
|
#if defined _POSIX_THREAD_CPUTIME && _POSIX_THREAD_CPUTIME >= 0
|
||||||
# define N 10
|
# define N 10
|
||||||
|
|
||||||
|
# if _POSIX_THREAD_CPUTIME == 0
|
||||||
|
if (sysconf (_SC_THREAD_CPUTIME) < 0)
|
||||||
|
{
|
||||||
|
puts ("_POSIX_THREAD_CPUTIME option not available");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
# endif
|
||||||
|
|
||||||
if (pthread_barrier_init (&b2, NULL, 2) != 0
|
if (pthread_barrier_init (&b2, NULL, 2) != 0
|
||||||
|| pthread_barrier_init (&bN, NULL, N + 1) != 0)
|
|| pthread_barrier_init (&bN, NULL, N + 1) != 0)
|
||||||
{
|
{
|
||||||
|
@ -2,6 +2,8 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <netdb.h>
|
#include <netdb.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
|
||||||
static int
|
static int
|
||||||
@ -47,7 +49,7 @@ do_test (void)
|
|||||||
if (err)
|
if (err)
|
||||||
{
|
{
|
||||||
printf ("FAIL getaddrinfo IPv4 socktype 0,513: "
|
printf ("FAIL getaddrinfo IPv4 socktype 0,513: "
|
||||||
"fam %d alen %d addr 0x%08X addr/fam %d "
|
"fam %d alen %d addr %p addr/fam %d "
|
||||||
"addr/port %d H[%d]\n",
|
"addr/port %d H[%d]\n",
|
||||||
pai->ai_family, pai->ai_addrlen, psin,
|
pai->ai_family, pai->ai_addrlen, psin,
|
||||||
psin ? psin->sin_family : 0,
|
psin ? psin->sin_family : 0,
|
||||||
|
Reference in New Issue
Block a user