glibc/misc
Adhemerval Zanella c181840c93 Consolidate non cancellable close call
This patch consolidates all the non cancellable close calls to use
the __close_nocancel{_nostatus} 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.

Also, since it is used on libcrypto it is also exported in GLIBC_PRIVATE
namespace.

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

	* sysdeps/generic/not-cancel.h (close_not_cancel): Remove macro.
	(close_not_cancel_no_status): Likewise.
	(__close_nocancel): New macro.
	(__close_nocancel_no_status): Likewise.
	* sysdeps/unix/sysv/linux/not-cancel.h (__close_nocancel): Remove
	macro.
	(close_not_cancel): Likewise.
	(close_not_cancel_no_status): Likewise.
	(__close_nocancel): New prototype.
	(__close_nocancel_no_status): New function.
	* sysdeps/unix/sysv/linux/close.c (__close_nocancel): New function.
	* catgets/open_catalog.c (__open_catalog): Replace
	close_not_cancel{_no_status) with __close_nocancel{_nostatus}.
	* gmon/gmon.c (write_gmon): Likewise.
	* iconv/gconv_cache.c (__gconv_load_cache): Likewise.
	* intl/loadmsgcat.c (close): Likewise.
	* io/ftw.c (open_dir_stream): Likewise.
	(ftw_startup): Likewise.
	* libio/fileops.c (_IO_file_open): Likewise.
	(_IO_file_close_mmap): Likewise.
	(_IO_file_close): Likewise.
	* libio/iopopen.c (_IO_dup2): Likewise.
	* locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
	* locale/loadlocale.c (_nl_load_locale): Likewise.
	* login/utmp_file.c (pututline_file): Likewise.
	(endutent_file): Likewise.
	* misc/daemon.c (daemon): Likewise.
	* nscd/nscd_getai.c (__nscd_getai): Likewise.
	* nscd/nscd_getgr_r.c (nscd_getgr_r): Likewise.
	* nscd/nscd_gethst_r.c (nscd_gethst_r): Likewise.
	* nscd/nscd_getpw_r.c (nscd_getpw_r): Likewise.
	* nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
	* nscd/nscd_helper.c (open_socket): Likewise.
	(__nscd_open_socket): Likewise.
	* nscd/nscd_initgroups.c (__nscd_getgrouplist): Likewise.
	* nscd/nscd_netgroup.c (__nscd_setnetgrent): Likewise.
	(__nscd_innetgr): Likewise.
	* nss/nss_db/db-open.c (internal_setent): Likewise.
	* resolv/res-close.c (__res_iclose): Likewise.
	* sunrpc/pm_getmaps.c (pmap_getmaps): Likewise.
	* sysdeps/posix/closedir.c (__closedir): Likewise.
	* sysdeps/posix/getaddrinfo.c (getaddrinfo): Likewise.
	* sysdeps/posix/getcwd.c (__getcwd): Likewise.
	* sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
	(opendir_tail): Likewise.
	* sysdeps/posix/spawni.c (__spawni_child): Likewise.
	* sysdeps/unix/sysv/linux/check_native.c (__check_native): Likewise.
	* sysdeps/unix/sysv/linux/check_pf.c (__check_pf): Likewise.
	* sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
	* sysdeps/unix/sysv/linux/gethostid.c (sethostid): Likewise.
	(gethostid): Likewise.
	* sysdeps/unix/sysv/linux/getloadavg.c (getloadavg): Likewise.
	* sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
	Likewise.
	* sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
	* sysdeps/unix/sysv/linux/grantpt.c (close_all_fds): Likewise.
	* sysdeps/unix/sysv/linux/i386/smp.h (is_smp_system): Likewise.
	* sysdeps/unix/sysv/linux/ia64/has_cpuclock.c (has_cpuclock):
	Likewise.
	* sysdeps/unix/sysv/linux/if_index.c (__if_nametoindex): Likewise.
	* sysdeps/unix/sysv/linux/libc_fatal.c (backtrace_and_maps): Likewise.
	* sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
	Likewise.
	* sysdeps/unix/sysv/linux/mq_notify.c (init_mq_netlink): Likewise.
	* sysdeps/unix/sysv/linux/pthread_getname.c (pthread_getname_np):
	Likewise.
	* sysdeps/unix/sysv/linux/pthread_setname.c (pthread_setname_np):
	Likewise.
	* sysdeps/unix/sysv/linux/spawni.c (__spawni_child): Likewise.
	* sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Likewise.
2017-08-18 18:38:55 -03:00
..
bits Fix sys/socket.h namespace issues from sys/uio.h inclusion (bug 21426). 2017-04-25 17:52:47 +00:00
sys Do not use generic selection in C++ mode 2017-08-18 12:19:28 -03:00
Makefile Remove __need_IOV_MAX and __need_FOPEN_MAX. 2017-06-14 07:51:30 -04:00
Versions Clean pthread functions namespaces for C11 threads 2017-06-23 17:38:17 -03:00
acct.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
ar.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
brk.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
bug-hsearch1.c .. 2009-01-23 20:41:36 +00:00
bug18240.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
chflags.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
chroot.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
daemon.c Consolidate non cancellable close call 2017-08-18 18:38:55 -03:00
dirname.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
efgcvt.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
efgcvt_r.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
err.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
err.h Do not use __ptr_t. 2017-08-08 17:14:49 +00:00
error.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
error.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fchflags.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fdatasync.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fgetxattr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
flistxattr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fremovexattr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fsetxattr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fstab.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
fstab.h Remove pre-ISO C support 2012-01-07 23:57:22 -05:00
fsync.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
ftruncate.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
ftruncate64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
futimes.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
futimesat.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
getauxval.c Add a way to bypass the PLT when calling getauxval 2017-06-09 14:36:22 -03:00
getclktck.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
getdomain.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
getdtsz.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
gethostid.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
gethostname.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
getloadavg.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
getpagesize.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
getpass.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
getsysstats.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
getttyent.c As a minor cleanup remove the (r)index defines from include/string.h as 2017-02-06 18:15:18 +00:00
getusershell.c Use (void) in no-arguments function definitions. 2013-06-08 00:22:23 +00:00
getxattr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
gtty.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
hsearch.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
hsearch_r.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
ifunc-impl-list.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
init-misc.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
insremque.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
ioctl.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lgetxattr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
libgen.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
listxattr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
llistxattr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lremovexattr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lsearch.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lsetxattr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
lutimes.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
madvise.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
makedev.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mincore.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mkdtemp.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mkostemp.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mkostemp64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mkostemps.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mkostemps64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mkstemp.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mkstemp64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mkstemps.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mkstemps64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mktemp.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mlock.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mlockall.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mmap.c Do not use __ptr_t. 2017-08-08 17:14:49 +00:00
mmap64.c Do not use __ptr_t. 2017-08-08 17:14:49 +00:00
mntent.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mntent.h Remove __need macros from stdio.h and wchar.h. 2017-06-08 13:58:17 -04:00
mntent_r.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
mprotect.c Do not use __ptr_t. 2017-08-08 17:14:49 +00:00
msync.c Do not use __ptr_t. 2017-08-08 17:14:49 +00:00
munlock.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
munlockall.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
munmap.c Do not use __ptr_t. 2017-08-08 17:14:49 +00:00
preadv.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
preadv2.c posix: Implement preadv2 and pwritev2 2017-05-31 17:35:46 -03:00
preadv64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
preadv64v2.c posix: Implement preadv2 and pwritev2 2017-05-31 17:35:46 -03:00
pselect.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
ptrace.c Narrowing the visibility of libc-internal.h even further. 2017-03-01 20:33:46 -05:00
pwritev.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
pwritev2.c posix: Implement preadv2 and pwritev2 2017-05-31 17:35:46 -03:00
pwritev64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
pwritev64v2.c posix: Implement preadv2 and pwritev2 2017-05-31 17:35:46 -03:00
qefgcvt.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
qefgcvt_r.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
readv.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
reboot.c Narrowing the visibility of libc-internal.h even further. 2017-03-01 20:33:46 -05:00
regexp.c Avoid .symver on common symbols [BZ #21666] 2017-06-23 14:39:07 -07:00
regexp.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
remap_file_pages.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
removexattr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
revoke.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
sbrk.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
search.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
select.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
setdomain.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
setegid.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
seteuid.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
sethostid.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
sethostname.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
setregid.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
setreuid.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
setxattr.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
sgtty.h Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
sstk.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
stab.h Update. 1997-06-21 02:59:26 +00:00
stty.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
swapoff.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
swapon.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
sync.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
syncfs.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
syscall.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
syscall.h update from main archive 960107 1997-01-07 23:29:44 +00:00
sysexits.h Update. 1999-06-09 13:08:30 +00:00
syslog.c Assume that SOCK_CLOEXEC is available and works 2015-10-17 12:02:37 +02:00
syslog.h initial import 1995-02-18 01:27:10 +00:00
truncate.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
truncate64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
tsearch.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
tst-atomic-long.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
tst-atomic.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
tst-dirname.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
tst-efgcvt.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
tst-empty.c Move all tests out of the csu subdirectory 2016-12-21 11:52:19 +01:00
tst-error1.c Split DIAG_* macros to new header libc-diag.h. 2017-02-25 09:59:46 -05:00
tst-fdset.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
tst-hsearch.c Modify several tests to use test-skeleton.c 2014-11-05 15:24:08 +05:30
tst-insremque.c [BZ #2766] 2006-06-17 17:01:42 +00:00
tst-makedev.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
tst-mntent-blank-corrupt.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
tst-mntent-blank-passno.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
tst-mntent.c getmntent: fix memory corruption w/blank lines [BZ #18887] 2015-08-29 18:07:00 -04:00
tst-mntent2.c Fix warning in misc/tst-mntent2.c. 2014-12-16 10:27:16 +01:00
tst-preadvwritev-common.c posix: Implement preadv2 and pwritev2 2017-05-31 17:35:46 -03:00
tst-preadvwritev.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
tst-preadvwritev2-common.c posix: Add p{read,write}v2 RWF_NOWAIT flag (BZ#21738) 2017-07-11 11:06:44 -03:00
tst-preadvwritev2.c posix: Add invalid flags test for p{write,read}v2 2017-06-21 10:58:32 -03:00
tst-preadvwritev64.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
tst-preadvwritev64v2.c posix: Add invalid flags test for p{write,read}v2 2017-06-21 10:58:32 -03:00
tst-pselect.c Do not use SA_NOCLDWAIT in tst-pselect. 2015-02-06 12:29:39 -08:00
tst-tsearch.c Increase some test timeouts. 2017-07-06 17:01:03 +00:00
ttyent.h Remove pre-ISO C support 2012-01-07 23:57:22 -05:00
ttyslot.c As a minor cleanup remove the (r)index defines from include/string.h as 2017-02-06 18:15:18 +00:00
ualarm.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
usleep.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
ustat.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
ustat.h Thu Jul 18 04:33:21 1996 Roland McGrath <roland@baalperazim.frob.com> 1996-07-18 08:43:26 +00:00
utimes.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
vhangup.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00
writev.c Update copyright dates with scripts/update-copyrights. 2017-01-01 00:14:16 +00:00