glibc/gmon
Adhemerval Zanella c647fb885c Consolidate non cancellable write call
This patch consolidates all the non cancellable write calls to use
the __write_nocancel identifier.  For non cancellable targets it will
be just a macro to call the default respective symbol while on Linux
will be a internal one.

Checked on x86_64-linux-gnu, x86_64-linux-gnu-x32, and i686-linux-gnu.

	* sysdeps/generic/not-cancel.h (write_not_cancel): Remove macro.
	(__write_nocancel): New macro.
	* sysdeps/unix/sysv/linux/not-cancel.h (__write_nocancel):
	Rewrite as a function prototype.
	(write_not_cancel): Remove macro.
	* sysdeps/unix/sysv/linux/write.c (__write_nocancel): New function.
	* gmon/gmon.c (ERR): Replace write_not_cancel with __write_nocancel.
	(write_gmon): Likewise.
	* libio/fileops.c (_IO_new_file_write): Likewise.
	* login/utmp_file.c (pututline_file): Likewise.
	(updwtmp_file): Likewise.
	* stdio-common/psiginfo.c (psiginfo): Likewise.
	* sysdeps/posix/spawni.c (__spawni_child): Likewise.
	* sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
	* sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps):
	Likewise.
	* sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
	Likewise.
2017-08-18 10:53:47 -03:00
..
sys Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
bb_exit_func.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
bb_init_func.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
gmon.c Consolidate non cancellable write call 2017-08-18 10:53:47 -03:00
Makefile gmon: Run tst-gmon-prof only for run-built-tests=yes 2017-08-15 18:35:42 +02:00
mcount.c Don't use catomic functions in mcount (BZ #16912) 2014-05-06 16:30:48 +02:00
prof-freq.c Moved to csu/errno-loc.c. 2005-12-14 15:06:39 +00:00
profil.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
sprofil.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
tst-gmon-gprof.sh gmon: Add test for basic mcount/gprof functionality 2017-08-15 15:49:45 +02:00
tst-gmon.c gmon: Add test for basic mcount/gprof functionality 2017-08-15 15:49:45 +02:00
tst-profile-static.c * elf/dl-reloc.c [PROF] (_dl_relocate_object): Define 2005-07-07 02:39:45 +00:00
tst-sprofil.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
Versions Update. 2001-03-21 20:15:55 +00:00