Go to file
Adhemerval Zanella fbd01e6c44 nptl: Fix tst-cancel4 sendto tests
Now that send might be implemented calling sendto syscall on Linux,
I am seeing some issue in some kernel configurations where tst-cancel4
sendto do not block as expected.

The socket used to force the syscall blocking is used with default
system configuration for buffer sending size, which might not be
suffice to force blocking.  This patch fixes it by explicit setting
buffer socket lower than the buffer size used.  It also enables sendto
cancellation tests to work in both ways (since internally send is
implemented routing to sendto on Linux kernel).

The patch also removes unrequired make rules on some archictures
for send/recv. The generic nptl Makefile already set the compiler flags
required on some architectures for correct unwinding and libc object
are not strictly required to support unwind (since pthread_cancel
requires linking against libpthread).

Checked on aarch64-linux-gnu and x86_64-linux-gnu. I also did a
sniff test with tst-cancel{4,5} on a simulated mips64-linux-gnu.

	* nptl/tst-cancel4-common.h (set_socket_buffer): New function.
	* nptl/tst-cancel4-common.c (do_test): Call set_socket_buffer
	for socketpair endpoint.
	* nptl/tst-cancel4.c (tf_send): Call set_socket_buffer and use
	WRITE_BUFFER_SIZE as buffer size for sending socket.
	(tf_sendto): Use SOCK_STREAM instead of SOCK_DGRAM and fix an
	issue on system where send is implemented with sendto syscall.
	* sysdeps/unix/sysv/linux/mips/mips64/Makefile [$(subdir) = socket]
	(CFLAGS-recv.c, CFLAGS-send.c): Remove rules.
	[$(subdir) = nptl] (CFLAGS-recv.c, CFLAGS-send.c): Likewise.
	* sysdeps/unix/sysv/linux/riscv/rv64/Makefile: Remove file.
2018-03-05 18:09:08 -03:00
ChangeLog.old
argp
assert
benchtests Remove slow paths from pow 2018-02-12 10:47:09 +00:00
bits Separate out error_t definition 2018-03-04 17:27:58 +01:00
catgets intl/tst-gettext: fix failure with newest msgfmt 2018-02-18 18:16:05 +01:00
conform
crypt
csu Post-cleanup 2: minimize _G_config.h. 2018-02-07 10:10:32 -05:00
ctype Use libc_hidden_* for tolower, toupper (bug 15105). 2018-02-23 13:54:53 +00:00
debug Remove _IO_file_flags define. 2018-02-21 14:22:50 -05:00
dirent
dlfcn
elf ldconfig: Sync temporary files to disk before renaming them [BZ #20890] 2018-02-21 10:42:48 +01:00
gmon
gnulib
grp
gshadow
hesiod
hurd Separate out error_t definition 2018-03-04 17:27:58 +01:00
iconv Fix -Os feof_unlocked linknamespace, localplt issues (bug 15105, bug 19463). 2018-02-15 20:57:15 +00:00
iconvdata
include Use libc_hidden_* for strtoumax (bug 15105). 2018-02-28 14:16:21 +00:00
inet
intl intl/tst-gettext: fix failure with newest msgfmt 2018-02-18 18:16:05 +01:00
io Fix a typo in a comment. 2018-02-21 04:00:03 -08:00
libidn
libio Remove miscellaneous debris from libio. 2018-02-21 14:39:54 -05:00
locale Fix two more -Os strcoll / wcscoll build failures. 2018-02-27 16:55:42 +00:00
localedata an_ES locale: update some locale data [BZ #22896] 2018-03-01 15:06:24 +01:00
login
mach hurd: Fix inclusion of mach headers in all standards 2018-03-04 02:53:09 +01:00
malloc Mechanically remove _IO_ name aliases for types and constants. 2018-02-21 14:11:05 -05:00
manual manual: Update _DEFAULT_SOURCE. [BZ #22862] 2018-02-21 02:38:42 -08:00
math Remove mplog and mpexp 2018-02-15 12:41:05 +00:00
mathvec
misc Fix -Os putc_unlocked, fputc_unlocked linknamespace, localplt issues (bug 15105, bug 19463). 2018-02-21 18:02:24 +00:00
nis
nptl nptl: Fix tst-cancel4 sendto tests 2018-03-05 18:09:08 -03:00
nptl_db nptl_db: Remove stale `match_pid' parameter from `iterate_thread_list' 2018-03-01 16:10:05 +00:00
nscd Fix multiple definitions of __nss_*_database (bug 22918) 2018-03-03 17:44:24 +01:00
nss Fix multiple definitions of __nss_*_database (bug 22918) 2018-03-03 17:44:24 +01:00
po
posix Fix multiple definitions of __nss_*_database (bug 22918) 2018-03-03 17:44:24 +01:00
pwd
resolv
resource
rt
scripts hurd: Fix inclusion of mach headers in all standards 2018-03-04 02:53:09 +01:00
setjmp
shadow
signal
socket
soft-fp
stdio-common Remove miscellaneous debris from libio. 2018-02-21 14:39:54 -05:00
stdlib Separate out error_t definition 2018-03-04 17:27:58 +01:00
streams
string Fix another -Os strcoll build issue. 2018-02-26 18:38:01 +00:00
sunrpc
support
sysdeps nptl: Fix tst-cancel4 sendto tests 2018-03-05 18:09:08 -03:00
sysvipc
termios
time Fix -Os getc_unlocked linknamespace, localplt issues (bug 15105, bug 19463). 2018-02-21 18:01:11 +00:00
timezone
wcsmbs Mechanically remove _IO_ name aliases for types and constants. 2018-02-21 14:11:05 -05:00
wctype
.gitattributes
.gitignore
COPYING
COPYING.LIB
ChangeLog nptl: Fix tst-cancel4 sendto tests 2018-03-05 18:09:08 -03:00
INSTALL Document use of CC and CFLAGS in more detail (bug 20980, bug 21234). 2018-02-15 23:48:47 +00:00
LICENSES
MAINTAINERS
Makeconfig
Makefile
Makefile.in
Makerules Define GEN_AS_CONST_HEADERS when generating header files [BZ #22792] 2018-02-23 11:29:39 -08:00
NEWS [BZ #19239] Don't include sys/sysmacros.h from sys/types.h. 2018-02-12 07:34:50 -05:00
README
Rules
abi-tags
aclocal.m4
config.h.in
config.make.in
configure
configure.ac
extra-lib.mk
gen-locales.mk Improve gen-locales.mk and gen-locale.sh to make test files with @ options work 2018-02-27 17:01:57 +01:00
libc-abis
libof-iterator.mk
o-iterator.mk
shlib-versions
test-skeleton.c
version.h

README

This directory contains the sources of the GNU C Library.
See the file "version.h" for what release version you have.

The GNU C Library is the standard system C library for all GNU systems,
and is an important part of what makes up a GNU system.  It provides the
system API for all programs written in C and C-compatible languages such
as C++ and Objective C; the runtime facilities of other programming
languages use the C library to access the underlying operating system.

In GNU/Linux systems, the C library works with the Linux kernel to
implement the operating system behavior seen by user applications.
In GNU/Hurd systems, it works with a microkernel and Hurd servers.

The GNU C Library implements much of the POSIX.1 functionality in the
GNU/Hurd system, using configurations i[4567]86-*-gnu.  The current
GNU/Hurd support requires out-of-tree patches that will eventually be
incorporated into an official GNU C Library release.

When working with Linux kernels, this version of the GNU C Library
requires Linux kernel version 3.2 or later.

Also note that the shared version of the libgcc_s library must be
installed for the pthread library to work correctly.

The GNU C Library supports these configurations for using Linux kernels:

	aarch64*-*-linux-gnu
	alpha*-*-linux-gnu
	arm-*-linux-gnueabi
	hppa-*-linux-gnu
	i[4567]86-*-linux-gnu
	x86_64-*-linux-gnu	Can build either x86_64 or x32
	ia64-*-linux-gnu
	m68k-*-linux-gnu
	microblaze*-*-linux-gnu
	mips-*-linux-gnu
	mips64-*-linux-gnu
	powerpc-*-linux-gnu	Hardware or software floating point, BE only.
	powerpc64*-*-linux-gnu	Big-endian and little-endian.
	s390-*-linux-gnu
	s390x-*-linux-gnu
	riscv64-*-linux-gnu
	sh[34]-*-linux-gnu
	sparc*-*-linux-gnu
	sparc64*-*-linux-gnu
	tilegx-*-linux-gnu

If you are interested in doing a port, please contact the glibc
maintainers; see http://www.gnu.org/software/libc/ for more
information.

See the file INSTALL to find out how to configure, build, and install
the GNU C Library.  You might also consider reading the WWW pages for
the C library at http://www.gnu.org/software/libc/.

The GNU C Library is (almost) completely documented by the Texinfo manual
found in the `manual/' subdirectory.  The manual is still being updated
and contains some known errors and omissions; we regret that we do not
have the resources to work on the manual as much as we would like.  For
corrections to the manual, please file a bug in the `manual' component,
following the bug-reporting instructions below.  Please be sure to check
the manual in the current development sources to see if your problem has
already been corrected.

Please see http://www.gnu.org/software/libc/bugs.html for bug reporting
information.  We are now using the Bugzilla system to track all bug reports.
This web page gives detailed information on how to report bugs properly.

The GNU C Library is free software.  See the file COPYING.LIB for copying
conditions, and LICENSES for notices about a few contributions that require
these additional notices to be distributed.  License copyright years may be
listed using range notation, e.g., 1996-2015, indicating that every year in
the range, inclusive, is a copyrightable year that would otherwise be listed
individually.