mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-25 06:20:06 +00:00
Update.
2003-04-08 Ulrich Drepper <drepper@redhat.com> * tst-barrier2.c: Eliminate warnings. * tst-cancel4.c: Likewise. * tst-cond4.c: Likewise. * tst-cond6.c: Likewise. * tst-detach1.c: Likewise. * tst-rwlock4.c: Likewise. * tst-rwlock6.c: Likewise. * tst-rwlock7.c: Likewise. * tst-sem3.c: Likewise. * tst-spin2.c: Likewise. * tst-umask1.c: Likewise.
This commit is contained in:
parent
cb4d04cd61
commit
f9657e88fa
@ -1,3 +1,17 @@
|
||||
2003-04-08 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* tst-barrier2.c: Eliminate warnings.
|
||||
* tst-cancel4.c: Likewise.
|
||||
* tst-cond4.c: Likewise.
|
||||
* tst-cond6.c: Likewise.
|
||||
* tst-detach1.c: Likewise.
|
||||
* tst-rwlock4.c: Likewise.
|
||||
* tst-rwlock6.c: Likewise.
|
||||
* tst-rwlock7.c: Likewise.
|
||||
* tst-sem3.c: Likewise.
|
||||
* tst-spin2.c: Likewise.
|
||||
* tst-umask1.c: Likewise.
|
||||
|
||||
2003-04-07 Ulrich Drepper <drepper@redhat.com>
|
||||
|
||||
* pthread_detach.c (pthread_detach): Fix test for invalid TID.
|
||||
|
@ -64,7 +64,7 @@ do_test (void)
|
||||
memset (data, '\0', ps);
|
||||
|
||||
/* Write the data to the file. */
|
||||
if (write (fd, data, ps) != ps)
|
||||
if (write (fd, data, ps) != (ssize_t) ps)
|
||||
{
|
||||
puts ("short write");
|
||||
return 1;
|
||||
|
@ -399,7 +399,7 @@ do_test (void)
|
||||
exit (1);
|
||||
}
|
||||
|
||||
int cnt;
|
||||
size_t cnt;
|
||||
for (cnt = 0; cnt < ntest_tf; ++cnt)
|
||||
{
|
||||
if (pthread_barrier_init (&b2, NULL, tests[cnt].nb) != 0)
|
||||
|
@ -67,7 +67,7 @@ do_test (void)
|
||||
memset (data, '\0', ps);
|
||||
|
||||
/* Write the data to the file. */
|
||||
if (write (fd, data, ps) != ps)
|
||||
if (write (fd, data, ps) != (ssize_t) ps)
|
||||
{
|
||||
puts ("short write");
|
||||
return 1;
|
||||
|
@ -68,7 +68,7 @@ do_test (void)
|
||||
memset (data, '\0', ps);
|
||||
|
||||
/* Write the data to the file. */
|
||||
if (write (fd, data, ps) != ps)
|
||||
if (write (fd, data, ps) != (ssize_t) ps)
|
||||
{
|
||||
puts ("short write");
|
||||
exit (1);
|
||||
|
@ -20,6 +20,7 @@
|
||||
#include <pthread.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
|
||||
static void *
|
||||
|
@ -64,7 +64,7 @@ do_test (void)
|
||||
memset (data, '\0', ps);
|
||||
|
||||
/* Write the data to the file. */
|
||||
if (write (fd, data, ps) != ps)
|
||||
if (write (fd, data, ps) != (ssize_t) ps)
|
||||
{
|
||||
puts ("short write");
|
||||
return 1;
|
||||
|
@ -107,7 +107,7 @@ tf (void *arg)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
int cnt;
|
||||
size_t cnt;
|
||||
for (cnt = 0; cnt < sizeof (kind) / sizeof (kind[0]); ++cnt)
|
||||
{
|
||||
pthread_rwlock_t r;
|
||||
|
@ -101,7 +101,7 @@ tf (void *arg)
|
||||
static int
|
||||
do_test (void)
|
||||
{
|
||||
int cnt;
|
||||
size_t cnt;
|
||||
for (cnt = 0; cnt < sizeof (kind) / sizeof (kind[0]); ++cnt)
|
||||
{
|
||||
pthread_rwlock_t r;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2002 Free Software Foundation, Inc.
|
||||
/* Copyright (C) 2002, 2003 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Ulrich Drepper <drepper@redhat.com>, 2002.
|
||||
|
||||
@ -54,7 +54,7 @@ main (void)
|
||||
memset (data, '\0', ps);
|
||||
|
||||
/* Write the data to the file. */
|
||||
if (write (fd, data, ps) != ps)
|
||||
if (write (fd, data, ps) != (ssize_t) ps)
|
||||
{
|
||||
puts ("short write");
|
||||
exit (1);
|
||||
|
@ -61,7 +61,7 @@ do_test (void)
|
||||
memset (data, '\0', ps);
|
||||
|
||||
/* Write the data to the file. */
|
||||
if (write (fd, data, ps) != ps)
|
||||
if (write (fd, data, ps) != (ssize_t) ps)
|
||||
{
|
||||
puts ("short write");
|
||||
return 1;
|
||||
|
@ -44,7 +44,7 @@ static int
|
||||
work (const char *fname, int mask)
|
||||
{
|
||||
int result = 0;
|
||||
int i;
|
||||
size_t i;
|
||||
for (i = 0; i < nfcts; ++i)
|
||||
{
|
||||
remove (fname);
|
||||
|
Loading…
Reference in New Issue
Block a user