mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
Update.
2001-06-11 Michael Deutschmann <michael@talamasca.ocis.net> * rt/tst-aio4.c (do_test): Test whether rt signals are supported. Use my_signo instead of MY_SIGNO and initialize it so that the used signal is always available. 2001-06-11 Andreas Jaeger <aj@suse.de>, Michael Deutschmann <michael@talamasca.ocis.net> * io/test-lfs.c (do_prepare): Clean up error messages. (test_ftello): Check for EFBIG and ENOSP, clean up error messages. (do_test): Likewise. 2001-06-11 Andreas Jaeger <aj@suse.de> * sysdeps/unix/sysv/linux/powerpc/bits/termios.h (IXANY, IUCLC, IMAXBEL): Make always visible since they're needed by POSIX. Closes PR libc/2320, reported by Chris Yeoh <cyeoh@samba.org>. 2001-06-10 Ben Collins <bcollins@debian.org> * sysdeps/arm/elf/start.S: Use #function, not @function, for .type of _start. * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Include limits.h to get INT_MAX. 2001-06-07 H.J. Lu <hjl@gnu.org> * sunrpc/rpc/rpc.h: Add __BEGIN_DECLS/__END_DECLS.
This commit is contained in:
31
ChangeLog
31
ChangeLog
@ -1,3 +1,34 @@
|
|||||||
|
2001-06-11 Michael Deutschmann <michael@talamasca.ocis.net>
|
||||||
|
|
||||||
|
* rt/tst-aio4.c (do_test): Test whether rt signals are supported.
|
||||||
|
Use my_signo instead of MY_SIGNO and initialize it so that the
|
||||||
|
used signal is always available.
|
||||||
|
|
||||||
|
2001-06-11 Andreas Jaeger <aj@suse.de>,
|
||||||
|
Michael Deutschmann <michael@talamasca.ocis.net>
|
||||||
|
|
||||||
|
* io/test-lfs.c (do_prepare): Clean up error messages.
|
||||||
|
(test_ftello): Check for EFBIG and ENOSP, clean up error messages.
|
||||||
|
(do_test): Likewise.
|
||||||
|
|
||||||
|
2001-06-11 Andreas Jaeger <aj@suse.de>
|
||||||
|
|
||||||
|
* sysdeps/unix/sysv/linux/powerpc/bits/termios.h (IXANY, IUCLC,
|
||||||
|
IMAXBEL): Make always visible since they're needed by POSIX.
|
||||||
|
Closes PR libc/2320, reported by Chris Yeoh <cyeoh@samba.org>.
|
||||||
|
|
||||||
|
2001-06-10 Ben Collins <bcollins@debian.org>
|
||||||
|
|
||||||
|
* sysdeps/arm/elf/start.S: Use #function, not @function, for
|
||||||
|
.type of _start.
|
||||||
|
|
||||||
|
* sysdeps/ieee754/ldbl-128/s_ilogbl.c: Include limits.h to get
|
||||||
|
INT_MAX.
|
||||||
|
|
||||||
|
2001-06-07 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
|
* sunrpc/rpc/rpc.h: Add __BEGIN_DECLS/__END_DECLS.
|
||||||
|
|
||||||
2001-06-10 Roland McGrath <roland@frob.com>
|
2001-06-10 Roland McGrath <roland@frob.com>
|
||||||
|
|
||||||
* elf/reldep4mod2.c: Use fully typed decls to avoid warnings.
|
* elf/reldep4mod2.c: Use fully typed decls to avoid warnings.
|
||||||
|
@ -65,7 +65,7 @@ do_prepare (int argc, char *argv[])
|
|||||||
if (errno == ENOSYS)
|
if (errno == ENOSYS)
|
||||||
{
|
{
|
||||||
/* Fail silently. */
|
/* Fail silently. */
|
||||||
error (0, errno, "open64 is not supported");
|
error (0, 0, "open64 is not supported");
|
||||||
exit (EXIT_SUCCESS);
|
exit (EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -100,29 +100,35 @@ test_ftello (void)
|
|||||||
ret = fseeko64 (f, TWO_GB+100, SEEK_SET);
|
ret = fseeko64 (f, TWO_GB+100, SEEK_SET);
|
||||||
if (ret == -1 && errno == ENOSYS)
|
if (ret == -1 && errno == ENOSYS)
|
||||||
{
|
{
|
||||||
error (0, errno, "fseeko64 is not supported");
|
error (0, 0, "fseeko64 is not supported.");
|
||||||
exit (EXIT_SUCCESS);
|
exit (EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
if (ret == -1 && errno == EINVAL)
|
if (ret == -1 && errno == EINVAL)
|
||||||
{
|
{
|
||||||
error (0, errno, "LFS seems not to be supported ");
|
error (0, 0, "LFS seems not to be supported");
|
||||||
exit (EXIT_SUCCESS);
|
exit (EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
if (ret == -1)
|
if (ret == -1)
|
||||||
{
|
{
|
||||||
error (0, errno, "fseeko64 failed with error: ");
|
error (0, errno, "fseeko64 failed with error");
|
||||||
exit (EXIT_FAILURE);
|
exit (EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = fwrite ("Hello", 1, 5, f);
|
ret = fwrite ("Hello", 1, 5, f);
|
||||||
if (ret == -1 && errno == EINVAL)
|
if (ret == -1 && errno == EFBIG)
|
||||||
{
|
{
|
||||||
error (0, errno, "LFS seems not to be supported.");
|
error (0, errno, "LFS seems not to be supported");
|
||||||
|
exit (EXIT_SUCCESS);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ret == -1 && errno == ENOSPC)
|
||||||
|
{
|
||||||
|
error (0, 0, "Not enough space to write file.");
|
||||||
exit (EXIT_SUCCESS);
|
exit (EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret != 5)
|
if (ret != 5)
|
||||||
error (EXIT_FAILURE, errno, "cannot write test string to large file");
|
error (EXIT_FAILURE, errno, "Cannot write test string to large file");
|
||||||
|
|
||||||
pos = ftello64 (f);
|
pos = ftello64 (f);
|
||||||
|
|
||||||
@ -144,24 +150,30 @@ do_test (int argc, char *argv[])
|
|||||||
ret = lseek64 (fd, TWO_GB+100, SEEK_SET);
|
ret = lseek64 (fd, TWO_GB+100, SEEK_SET);
|
||||||
if (ret == -1 && errno == ENOSYS)
|
if (ret == -1 && errno == ENOSYS)
|
||||||
{
|
{
|
||||||
error (0, errno, "lseek64 is not supported");
|
error (0, 0, "lseek64 is not supported.");
|
||||||
exit (EXIT_SUCCESS);
|
exit (EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
if (ret == -1 && errno == EINVAL)
|
if (ret == -1 && errno == EINVAL)
|
||||||
{
|
{
|
||||||
error (0, errno, "LFS seems not to be supported ");
|
error (0, 0, "LFS seems not to be supported.");
|
||||||
exit (EXIT_SUCCESS);
|
exit (EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
if (ret == -1)
|
if (ret == -1)
|
||||||
{
|
{
|
||||||
error (0, errno, "lseek64 failed with error: ");
|
error (0, errno, "lseek64 failed with error");
|
||||||
exit (EXIT_FAILURE);
|
exit (EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = write (fd, "Hello", 5);
|
ret = write (fd, "Hello", 5);
|
||||||
if (ret == -1 && errno == EINVAL)
|
if (ret == -1 && errno == EFBIG)
|
||||||
{
|
{
|
||||||
error (0, errno, "LFS seems not to be supported.");
|
error (0, 0, "LFS seems not to be supported.");
|
||||||
|
exit (EXIT_SUCCESS);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (ret == -1 && errno == ENOSPC)
|
||||||
|
{
|
||||||
|
error (0, 0, "Not enough space to write file.");
|
||||||
exit (EXIT_SUCCESS);
|
exit (EXIT_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -176,7 +188,7 @@ do_test (int argc, char *argv[])
|
|||||||
ret = stat64 (name, &statbuf);
|
ret = stat64 (name, &statbuf);
|
||||||
|
|
||||||
if (ret == -1 && (errno == ENOSYS || errno == EOVERFLOW))
|
if (ret == -1 && (errno == ENOSYS || errno == EOVERFLOW))
|
||||||
error (0, errno, "stat64 is not supported");
|
error (0, 0, "stat64 is not supported.");
|
||||||
else if (ret == -1)
|
else if (ret == -1)
|
||||||
error (EXIT_FAILURE, errno, "cannot stat file `%s'", name);
|
error (EXIT_FAILURE, errno, "cannot stat file `%s'", name);
|
||||||
else if (statbuf.st_size != (TWO_GB + 100 + 5))
|
else if (statbuf.st_size != (TWO_GB + 100 + 5))
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Test for completion signal handling.
|
/* Test for completion signal handling.
|
||||||
Copyright (C) 2000 Free Software Foundation, Inc.
|
Copyright (C) 2000, 2001 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
|
||||||
@ -26,7 +26,7 @@
|
|||||||
/* We might need a bit longer timeout. */
|
/* We might need a bit longer timeout. */
|
||||||
#define TIMEOUT 10 /* sec */
|
#define TIMEOUT 10 /* sec */
|
||||||
|
|
||||||
#define MY_SIGNO (SIGRTMIN + 11)
|
int my_signo;
|
||||||
|
|
||||||
volatile sig_atomic_t flag;
|
volatile sig_atomic_t flag;
|
||||||
|
|
||||||
@ -46,7 +46,7 @@ wait_flag (void)
|
|||||||
sleep (1);
|
sleep (1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (flag != MY_SIGNO)
|
if (flag != my_signo)
|
||||||
{
|
{
|
||||||
printf ("signal handler received wrong signal, flag is %d\n", flag);
|
printf ("signal handler received wrong signal, flag is %d\n", flag);
|
||||||
return 1;
|
return 1;
|
||||||
@ -68,6 +68,15 @@ do_test (int argc, char *argv[])
|
|||||||
struct sigaction sa;
|
struct sigaction sa;
|
||||||
struct sigevent ev;
|
struct sigevent ev;
|
||||||
|
|
||||||
|
if (SIGRTMIN == -1)
|
||||||
|
{
|
||||||
|
printf ("RT signals not supported.\n");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Select a signal from the middle of the available choices... */
|
||||||
|
my_signo = (SIGRTMAX + SIGRTMIN) / 2;
|
||||||
|
|
||||||
fd = mkstemp (name);
|
fd = mkstemp (name);
|
||||||
if (fd == -1)
|
if (fd == -1)
|
||||||
{
|
{
|
||||||
@ -90,19 +99,19 @@ do_test (int argc, char *argv[])
|
|||||||
cb.aio_sigevent.sigev_notify = SIGEV_SIGNAL;
|
cb.aio_sigevent.sigev_notify = SIGEV_SIGNAL;
|
||||||
cb.aio_sigevent.sigev_notify_function = NULL;
|
cb.aio_sigevent.sigev_notify_function = NULL;
|
||||||
cb.aio_sigevent.sigev_notify_attributes = NULL;
|
cb.aio_sigevent.sigev_notify_attributes = NULL;
|
||||||
cb.aio_sigevent.sigev_signo = MY_SIGNO;
|
cb.aio_sigevent.sigev_signo = my_signo;
|
||||||
cb.aio_sigevent.sigev_value.sival_ptr = NULL;
|
cb.aio_sigevent.sigev_value.sival_ptr = NULL;
|
||||||
|
|
||||||
ev.sigev_notify = SIGEV_SIGNAL;
|
ev.sigev_notify = SIGEV_SIGNAL;
|
||||||
ev.sigev_notify_function = NULL;
|
ev.sigev_notify_function = NULL;
|
||||||
ev.sigev_notify_attributes = NULL;
|
ev.sigev_notify_attributes = NULL;
|
||||||
ev.sigev_signo = MY_SIGNO;
|
ev.sigev_signo = my_signo;
|
||||||
|
|
||||||
sa.sa_handler = sighandler;
|
sa.sa_handler = sighandler;
|
||||||
sigemptyset (&sa.sa_mask);
|
sigemptyset (&sa.sa_mask);
|
||||||
sa.sa_flags = SA_RESTART;
|
sa.sa_flags = SA_RESTART;
|
||||||
|
|
||||||
if (sigaction (MY_SIGNO, &sa, NULL) < 0)
|
if (sigaction (my_signo, &sa, NULL) < 0)
|
||||||
{
|
{
|
||||||
printf ("sigaction failed: %m\n");
|
printf ("sigaction failed: %m\n");
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
.text
|
.text
|
||||||
.globl _start
|
.globl _start
|
||||||
.type _start,@function
|
.type _start,#function
|
||||||
_start:
|
_start:
|
||||||
/* Clear the frame pointer since this is the outermost frame. */
|
/* Clear the frame pointer since this is the outermost frame. */
|
||||||
mov fp, #0
|
mov fp, #0
|
||||||
|
@ -24,6 +24,7 @@ static char rcsid[] = "$NetBSD: $";
|
|||||||
* ilogbl(+-Inf) = INT_MAX (no signal is raised)
|
* ilogbl(+-Inf) = INT_MAX (no signal is raised)
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <limits.h>
|
||||||
#include "math.h"
|
#include "math.h"
|
||||||
#include "math_private.h"
|
#include "math_private.h"
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
/* Copyright (C) 1997, 1999 Free Software Foundation, Inc.
|
/* Copyright (C) 1997, 1999, 2001 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
|
||||||
@ -74,12 +74,9 @@ struct termios {
|
|||||||
#define ICRNL 0000400
|
#define ICRNL 0000400
|
||||||
#define IXON 0001000
|
#define IXON 0001000
|
||||||
#define IXOFF 0002000
|
#define IXOFF 0002000
|
||||||
/* POSIX.1 doesn't want these... */
|
#define IXANY 0004000
|
||||||
#ifdef __USE_BSD
|
#define IUCLC 0010000
|
||||||
# define IXANY 0004000
|
#define IMAXBEL 0020000
|
||||||
# define IUCLC 0010000
|
|
||||||
# define IMAXBEL 0020000
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* c_oflag bits */
|
/* c_oflag bits */
|
||||||
#define OPOST 0000001
|
#define OPOST 0000001
|
||||||
|
Reference in New Issue
Block a user