mirror of git://sourceware.org/git/glibc.git
This patch consolidates all the non cancellable open calls to use
the __open_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.
To be consistent with the following non cancellable openat call, a
new __open64_nocancel is also added (although not currently used).
Checked on x86_64-linux-gnu, x86_64-linux-gnu-x32, and i686-linux-gnu.
* sysdeps/generic/not-cancel.h (open_not_cancel): Remove macro.
(open_not_cancel_2): Likewise.
(open_nocancel): New macro.
(open64_nocancel): Likewise.
* sysdeps/unix/sysv/linux/not-cancel.h (open_not_cancel): Remove macro.
(open_not_cancel_2): Likewise.
(__open_nocancel): New prototype.
(__open64_nocancel): Likewise.
* sysdeps/unix/sysv/linux/Versions (libc) [GLIBC_PRIVATE]: Add
__open_nocancel.
* sysdeps/unix/sysv/linux/open.c (__open_nocancel): New function.
* sysdeps/unix/sysv/linux/open64.c (__open64_nocancel): Likewise.
* catgets/open_catalog.c (__open_catalog): Replace open_not_cancel{_2}
with __open_nocancel.
* csu/check_fds.c (check_one_fd): Likewise.
* gmon/gmon.c (write_gmon): Likewise.
* iconv/gconv_cache.c (__gconv_load_cached): Likewise.
* intl/loadmsgcat.c (open): Likewise.
* libio/fileops.c (_IO_file_open): Likewise.
* locale/loadarchive.c (_nl_load_locale_from_archive): Likewise.
* locale/loadlocale.c (_nl_load_locale): Likewise.
* login/utmp_file.c (setutent_file): Likewise.
* misc/daemon.c (daemon): Likewise.
* nss/nss_db/db-open.c (internal_setent): Likewise.
* sysdeps/mach/hurd/opendir.c (__opendirat): Likewise.
* sysdeps/posix/libc_fatal.c (__libc_message): Likewise.
* sysdeps/posix/opendir.c (tryopen_o_directory): Likewise.
(__opendir): Likewise.
* sysdeps/posix/spawni.c (__spawni_child): Likewise.
* sysdeps/unix/sysv/linux/fips-private.h (fips_enable_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/libc_fatal.c (backtrace_and_maps):
Likewise.
* sysdeps/unix/sysv/linux/malloc-sysdep.h (check_may_shrink_heap):
Likewise.
* sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c (__get_clockfreq):
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.
|
||
|---|---|---|
| .. | ||
| aarch64 | ||
| alpha | ||
| arm | ||
| bits | ||
| generic | ||
| hppa | ||
| i386 | ||
| ia64 | ||
| include | ||
| m68k | ||
| microblaze | ||
| mips | ||
| net | ||
| netash | ||
| netatalk | ||
| netax25 | ||
| neteconet | ||
| netinet | ||
| netipx | ||
| netiucv | ||
| netpacket | ||
| netrom | ||
| netrose | ||
| nfs | ||
| nios2 | ||
| powerpc | ||
| s390 | ||
| scsi | ||
| sh | ||
| sparc | ||
| sys | ||
| tile | ||
| wordsize-64 | ||
| x86 | ||
| x86_64 | ||
| Implies | ||
| Makefile | ||
| Versions | ||
| _G_config.h | ||
| _exit.c | ||
| a.out.h | ||
| accept.c | ||
| accept4.c | ||
| access.c | ||
| adjtime.c | ||
| aio_misc.h | ||
| aio_sigqueue.c | ||
| arch-fork.h | ||
| bind.c | ||
| check_native.c | ||
| check_pf.c | ||
| clock.c | ||
| clock_getcpuclockid.c | ||
| clock_getres.c | ||
| clock_gettime.c | ||
| clock_nanosleep.c | ||
| clock_settime.c | ||
| close.c | ||
| cmsg_nxthdr.c | ||
| configure | ||
| configure.ac | ||
| connect.c | ||
| creat.c | ||
| creat64.c | ||
| createthread.c | ||
| default-sched.h | ||
| device-nrs.h | ||
| dl-brk.c | ||
| dl-execstack.c | ||
| dl-fxstatat64.c | ||
| dl-getcwd.c | ||
| dl-librecon.h | ||
| dl-openat64.c | ||
| dl-opendir.c | ||
| dl-origin.c | ||
| dl-osinfo.h | ||
| dl-sbrk.c | ||
| dl-sysdep.c | ||
| dl-sysdep.h | ||
| dl-vdso.c | ||
| dl-vdso.h | ||
| dl-writev.h | ||
| epoll_pwait.c | ||
| epoll_wait.c | ||
| errqueue.h | ||
| eventfd_read.c | ||
| eventfd_write.c | ||
| exit-thread.h | ||
| faccessat.c | ||
| fallocate.c | ||
| fallocate64.c | ||
| fatal-prepare.h | ||
| fchmodat.c | ||
| fcntl.c | ||
| fd_to_filename.h | ||
| fdatasync.c | ||
| fexecve.c | ||
| fips-private.h | ||
| fpathconf.c | ||
| fstatfs64.c | ||
| fstatvfs.c | ||
| fstatvfs64.c | ||
| fsync.c | ||
| ftime.c | ||
| ftruncate.c | ||
| ftruncate64.c | ||
| futex-internal.h | ||
| futimens.c | ||
| futimes.c | ||
| futimesat.c | ||
| fxstat.c | ||
| fxstat64.c | ||
| fxstatat.c | ||
| fxstatat64.c | ||
| gai_sigqueue.c | ||
| getclktck.c | ||
| getcwd.c | ||
| getdents.c | ||
| getdents64.c | ||
| getdirentries.c | ||
| getdirentries64.c | ||
| getdtsz.c | ||
| getentropy.c | ||
| gethostid.c | ||
| getipv4sourcefilter.c | ||
| getloadavg.c | ||
| getlogin.c | ||
| getlogin_r.c | ||
| getpagesize.c | ||
| getpeername.c | ||
| getpriority.c | ||
| getpt.c | ||
| getrandom.c | ||
| getrlimit.c | ||
| getrlimit64.c | ||
| getsockname.c | ||
| getsockopt.c | ||
| getsourcefilter.c | ||
| getsysstats.c | ||
| gettimeofday.c | ||
| grantpt.c | ||
| if_index.c | ||
| ifaddrs.c | ||
| ifreq.c | ||
| internal_statvfs.c | ||
| internal_statvfs64.c | ||
| ipc_ops.h | ||
| ipc_priv.h | ||
| kernel-features.h | ||
| kernel-posix-cpu-timers.h | ||
| kernel-posix-timers.h | ||
| kernel_sigaction.h | ||
| kernel_stat.h | ||
| kernel_termios.h | ||
| ldd-rewrite.sed | ||
| lddlibc4.c | ||
| ldsodefs.h | ||
| libc_fatal.c | ||
| linux_fsinfo.h | ||
| listen.c | ||
| local-setxid.h | ||
| lowlevellock-futex.h | ||
| lseek.c | ||
| lseek64.c | ||
| lutimes.c | ||
| lxstat.c | ||
| lxstat64.c | ||
| malloc-sysdep.h | ||
| mmap.c | ||
| mmap64.c | ||
| mmap_internal.h | ||
| mq_close.c | ||
| mq_getattr.c | ||
| mq_notify.c | ||
| mq_open.c | ||
| mq_receive.c | ||
| mq_send.c | ||
| mq_timedreceive.c | ||
| mq_timedsend.c | ||
| mq_unlink.c | ||
| msgctl.c | ||
| msgget.c | ||
| msgrcv.c | ||
| msgsnd.c | ||
| msync.c | ||
| nanosleep.c | ||
| netlink_assert_response.c | ||
| netlinkaccess.h | ||
| nice.c | ||
| not-cancel.h | ||
| not-errno.h | ||
| nptl-signals.h | ||
| nscd_setup_thread.c | ||
| ntp_gettime.c | ||
| ntp_gettimex.c | ||
| open.c | ||
| open64.c | ||
| open_by_handle_at.c | ||
| openat.c | ||
| openat64.c | ||
| opendir.c | ||
| opensock.c | ||
| pathconf.c | ||
| pathconf.h | ||
| paths.h | ||
| pause.c | ||
| personality.c | ||
| poll.c | ||
| posix_fadvise.c | ||
| posix_fadvise64.c | ||
| posix_fallocate.c | ||
| posix_fallocate64.c | ||
| posix_madvise.c | ||
| ppoll.c | ||
| pread.c | ||
| pread64.c | ||
| preadv.c | ||
| preadv2.c | ||
| preadv64.c | ||
| preadv64v2.c | ||
| prlimit.c | ||
| prof-freq.c | ||
| profil.c | ||
| pselect.c | ||
| pt-raise.c | ||
| pthread-pids.h | ||
| pthread_getaffinity.c | ||
| pthread_getcpuclockid.c | ||
| pthread_getname.c | ||
| pthread_kill.c | ||
| pthread_setaffinity.c | ||
| pthread_setname.c | ||
| pthread_sigmask.c | ||
| pthread_sigqueue.c | ||
| ptrace.c | ||
| ptsname.c | ||
| pwrite.c | ||
| pwrite64.c | ||
| pwritev.c | ||
| pwritev2.c | ||
| pwritev64.c | ||
| pwritev64v2.c | ||
| raise.c | ||
| read.c | ||
| readahead.c | ||
| readdir64.c | ||
| readdir64_r.c | ||
| readonly-area.c | ||
| readv.c | ||
| reboot.c | ||
| recv.c | ||
| recvfrom.c | ||
| recvmmsg.c | ||
| recvmsg.c | ||
| remove.c | ||
| rename.c | ||
| renameat.c | ||
| sa_len.c | ||
| safe-fatal.h | ||
| sched_getaffinity.c | ||
| sched_getcpu.c | ||
| sched_setaffinity.c | ||
| segfault.c | ||
| select.c | ||
| semctl.c | ||
| semget.c | ||
| semop.c | ||
| semtimedop.c | ||
| send.c | ||
| sendmmsg.c | ||
| sendmsg.c | ||
| sendto.c | ||
| setegid.c | ||
| seteuid.c | ||
| setgid.c | ||
| setgroups.c | ||
| sethostid.c | ||
| setipv4sourcefilter.c | ||
| setregid.c | ||
| setresgid.c | ||
| setresuid.c | ||
| setreuid.c | ||
| setrlimit.c | ||
| setrlimit64.c | ||
| setsockopt.c | ||
| setsourcefilter.c | ||
| setuid.c | ||
| shlib-versions | ||
| shm-directory.c | ||
| shmat.c | ||
| shmctl.c | ||
| shmdt.c | ||
| shmget.c | ||
| shutdown.c | ||
| sigaction.c | ||
| siglist.h | ||
| signal.c | ||
| signalfd.c | ||
| sigpending.c | ||
| sigprocmask.c | ||
| sigqueue.c | ||
| sigreturn.c | ||
| sigset-cvt-mask.h | ||
| sigsetops.h | ||
| sigstack.c | ||
| sigsuspend.c | ||
| sigtimedwait.c | ||
| sigwait.c | ||
| sigwaitinfo.c | ||
| sizes.h | ||
| socket.c | ||
| socketcall.h | ||
| socketpair.c | ||
| spawni.c | ||
| speed.c | ||
| splice.c | ||
| statfs64.c | ||
| statvfs.c | ||
| statvfs64.c | ||
| sync_file_range.c | ||
| syscalls.list | ||
| sysconf.c | ||
| sysctl.c | ||
| sysctl.mk | ||
| sysdep-vdso.h | ||
| sysdep.h | ||
| syslog.c | ||
| system.c | ||
| tcdrain.c | ||
| tcflow.c | ||
| tcflush.c | ||
| tcgetattr.c | ||
| tcgetpgrp.c | ||
| tcsendbrk.c | ||
| tcsetattr.c | ||
| tcsetpgrp.c | ||
| tee.c | ||
| termio.h | ||
| test-errno-linux.c | ||
| time.c | ||
| timer_create.c | ||
| timer_delete.c | ||
| timer_getoverr.c | ||
| timer_gettime.c | ||
| timer_routines.c | ||
| timer_settime.c | ||
| times.c | ||
| timespec_get.c | ||
| truncate.c | ||
| truncate64.c | ||
| tst-affinity-pid.c | ||
| tst-affinity.c | ||
| tst-align-clone.c | ||
| tst-clone.c | ||
| tst-clone2.c | ||
| tst-clone3.c | ||
| tst-fallocate-common.c | ||
| tst-fallocate.c | ||
| tst-fallocate64.c | ||
| tst-fanotify.c | ||
| tst-getpid1.c | ||
| tst-personality.c | ||
| tst-quota.c | ||
| tst-setgetname.c | ||
| tst-signal-numbers.sh | ||
| tst-skeleton-affinity.c | ||
| tst-skeleton-thread-affinity.c | ||
| tst-sync_file_range.c | ||
| tst-thread-affinity-pthread.c | ||
| tst-thread-affinity-pthread2.c | ||
| tst-thread-affinity-sched.c | ||
| ttyname.c | ||
| ttyname.h | ||
| ttyname_r.c | ||
| ualarm.c | ||
| umount.S | ||
| umount2.S | ||
| unlockpt.c | ||
| updwtmp.c | ||
| ustat.c | ||
| utimensat.c | ||
| utimes.c | ||
| utmp_file.c | ||
| vfork.c | ||
| vmsplice.c | ||
| wait.c | ||
| wait3.c | ||
| waitid.c | ||
| waitpid.c | ||
| write.c | ||
| writev.c | ||
| xmknod.c | ||
| xmknodat.c | ||
| xstat.c | ||
| xstat64.c | ||
| xstatconv.c | ||
| xstatconv.h | ||